From 4326c9657e8de26ce20b8392eb1f55d5810499be Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Sun, 17 May 2015 19:25:46 +0300 Subject: [PATCH] Gui: fix constructor arguments due to prototype change Warning message was: src/Gui/DownloadManager.cpp|295 col 54| warning: 'this' pointer cannot be null in well-defined C++ code; pointer may be assumed to always convert to true [-Wundefined-bool-conversion] --- src/Gui/DownloadManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gui/DownloadManager.cpp b/src/Gui/DownloadManager.cpp index b691ebe93..cdf1a09ee 100644 --- a/src/Gui/DownloadManager.cpp +++ b/src/Gui/DownloadManager.cpp @@ -292,7 +292,7 @@ void DownloadManager::load() QString fileName = settings.value(key + QLatin1String("location")).toString(); bool done = settings.value(key + QLatin1String("done"), true).toBool(); if (!url.isEmpty() && !fileName.isEmpty()) { - DownloadItem *item = new DownloadItem(0, this); + DownloadItem *item = new DownloadItem(0, false, this); item->m_output.setFileName(fileName); item->fileNameLabel->setText(QFileInfo(item->m_output.fileName()).fileName()); item->m_url = url;