diff --git a/src/Gui/DownloadItem.cpp b/src/Gui/DownloadItem.cpp index 5dc7db8c65..10f78346e2 100644 --- a/src/Gui/DownloadItem.cpp +++ b/src/Gui/DownloadItem.cpp @@ -300,7 +300,11 @@ QString DownloadItem::getDownloadDirectory() const dirPath = QString::fromUtf8(dir.c_str()); } +#if QT_VERSION >= 0x050000 + if (QFileInfo::exists(dirPath) || QDir().mkpath(dirPath)) { +#else if (QFileInfo(dirPath).exists() || QDir().mkpath(dirPath)) { +#endif return dirPath; } else {