mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-02 09:55:55 +00:00
Fix filename not populated correctly
Fix up dd1bd8ad10fae86837e2c26132de92707622f08a. Related #17279.
This commit is contained in:
parent
1abeac8811
commit
aadf961184
@ -180,8 +180,8 @@ void TorrentCreatorDialog::onCreateButtonClicked()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// get save path
|
// get save path
|
||||||
const Path savePath = m_storeLastSavePath.get(Utils::Fs::homePath() / Path(inputPath.filename() + u".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"), savePath.data(), tr("Torrent Files (*.torrent)"))};
|
Path destPath {QFileDialog::getSaveFileName(this, tr("Select where to save the new torrent"), lastSavePath.data(), tr("Torrent Files (*.torrent)"))};
|
||||||
if (destPath.isEmpty())
|
if (destPath.isEmpty())
|
||||||
return;
|
return;
|
||||||
if (!destPath.hasExtension(TORRENT_FILE_EXTENSION))
|
if (!destPath.hasExtension(TORRENT_FILE_EXTENSION))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user