diff options
| author | Krzysztof Starecki <krzysztof.starecki@gmail.com> | 2019-01-01 01:10:46 +0100 |
|---|---|---|
| committer | Krzysztof Starecki <krzysztof.starecki@gmail.com> | 2019-01-01 01:10:46 +0100 |
| commit | 44d42cb26dca902d744a994a91279ca45c79d75f (patch) | |
| tree | d645a68e630df4512114d2f9de273b253a908482 /src/downloadmanager.cpp | |
| parent | 263a3f7d24f177bb28ad988ec70bc97106c0816b (diff) | |
Change redownload dialog to display the filename
Diffstat (limited to 'src/downloadmanager.cpp')
| -rw-r--r-- | src/downloadmanager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/downloadmanager.cpp b/src/downloadmanager.cpp index 509323c9..8c4e0b56 100644 --- a/src/downloadmanager.cpp +++ b/src/downloadmanager.cpp @@ -499,8 +499,8 @@ void DownloadManager::startDownload(QNetworkReply *reply, DownloadInfo *newDownl if (QFile::exists(m_OutputDirectory + "/" + newDownload->m_FileName)) {
setState(newDownload, STATE_PAUSING);
QCoreApplication::processEvents();
- if (QMessageBox::question(nullptr, tr("Download again?"), tr("A file with the same name has already been downloaded. "
- "Do you want to download it again? The new file will receive a different name."),
+ if (QMessageBox::question(nullptr, tr("Download again?"), tr("A file with the same name \"%1\" has already been downloaded. "
+ "Do you want to download it again? The new file will receive a different name.").arg(newDownload->m_FileName),
QMessageBox::Yes | QMessageBox::No) == QMessageBox::No) {
if (reply->isFinished())
setState(newDownload, STATE_CANCELED);
|
