GUI: handle 'cancel' in open dialog
This commit is contained in:
parent
ca2f59a6d4
commit
f316e0d572
|
@ -192,6 +192,7 @@ void ProjectFileDialog::BrowseImportProject()
|
|||
QString fileName = QFileDialog::getOpenFileName(this, tr("Import Project"),
|
||||
dir.canonicalPath(),
|
||||
tr("Visual Studio (*.sln *.vcxproj);;Compile database (compile_database.json)"));
|
||||
if (!fileName.isEmpty())
|
||||
mUI.mEditImportProject->setText(dir.relativeFilePath(fileName));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue