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]
This commit is contained in:
Alexander Golubev 2015-05-17 19:25:46 +03:00 committed by wmayer
parent 80941aa0e0
commit 4326c9657e

View File

@ -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;