mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 10:46:04 +03:00
Fix filename not populated correctly
Fix up dd1bd8ad10
.
Related #17279.
This commit is contained in:
parent
1abeac8811
commit
aadf961184
1 changed files with 2 additions and 2 deletions
|
@ -180,8 +180,8 @@ void TorrentCreatorDialog::onCreateButtonClicked()
|
|||
}
|
||||
|
||||
// get save path
|
||||
const Path savePath = m_storeLastSavePath.get(Utils::Fs::homePath() / Path(inputPath.filename() + u".torrent"));
|
||||
Path destPath {QFileDialog::getSaveFileName(this, tr("Select where to save the new torrent"), savePath.data(), tr("Torrent Files (*.torrent)"))};
|
||||
const Path lastSavePath = (m_storeLastSavePath.get(Utils::Fs::homePath()) / Path(inputPath.filename() + u".torrent"));
|
||||
Path destPath {QFileDialog::getSaveFileName(this, tr("Select where to save the new torrent"), lastSavePath.data(), tr("Torrent Files (*.torrent)"))};
|
||||
if (destPath.isEmpty())
|
||||
return;
|
||||
if (!destPath.hasExtension(TORRENT_FILE_EXTENSION))
|
||||
|
|
Loading…
Reference in a new issue