mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -06:00
Use QString literals
The plan is to define `QT_NO_CAST_FROM_ASCII` eventually. PR #16561.
This commit is contained in:
@@ -188,8 +188,8 @@ void TorrentCreatorDialog::onCreateButtonClicked()
|
||||
Path destPath {QFileDialog::getSaveFileName(this, tr("Select where to save the new torrent"), savePath.data(), tr("Torrent Files (*.torrent)"))};
|
||||
if (destPath.isEmpty())
|
||||
return;
|
||||
if (!destPath.hasExtension(C_TORRENT_FILE_EXTENSION))
|
||||
destPath += C_TORRENT_FILE_EXTENSION;
|
||||
if (!destPath.hasExtension(TORRENT_FILE_EXTENSION))
|
||||
destPath += TORRENT_FILE_EXTENSION;
|
||||
m_storeLastSavePath = destPath.parentPath();
|
||||
|
||||
// Disable dialog & set busy cursor
|
||||
|
||||
Reference in New Issue
Block a user