Commit 8bb845a0 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle Committed by Vincent PINON

Fix type preventing opening project

parent 735d395d
......@@ -274,7 +274,7 @@ void ProjectManager::openFile()
}
//TODO KF5 set default location to project folder
QUrl url = QFileDialog::getOpenFileUrl(QApplication::activeWindow(), QString(), QUrl(), getMimeType());
if (url.isValid()) {
if (!url.isValid()) {
return;
}
m_recentFilesAction->addUrl(url);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment