summaryrefslogtreecommitdiffstats
path: root/src/libs/kdtools/filedownloader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/kdtools/filedownloader.cpp')
-rw-r--r--src/libs/kdtools/filedownloader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/kdtools/filedownloader.cpp b/src/libs/kdtools/filedownloader.cpp
index b816b5fd5..276d5bbef 100644
--- a/src/libs/kdtools/filedownloader.cpp
+++ b/src/libs/kdtools/filedownloader.cpp
@@ -814,7 +814,7 @@ void KDUpdater::LocalFileDownloader::doDownload()
if (!d->source->open(QFile::ReadOnly)) {
onError();
setDownloadAborted(tr("Cannot open file \"%1\" for reading: %2").arg(QFileInfo(localFile)
- .fileName(), d->source->errorString()));
+ .fileName(), d->source ? d->source->errorString() : tr("File not found")));
return;
}