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:
parent
80941aa0e0
commit
4326c9657e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user