Don't open new window if user canceled opening file.
--HG-- branch : develop
This commit is contained in:
parent
dd0d3faae6
commit
3293916d50
|
@ -1411,6 +1411,10 @@ void MainWindow::Open()
|
|||
}
|
||||
qCDebug(vMainWindow)<<"Run QFileDialog::getOpenFileName: dir ="<<dir<<".";
|
||||
const QString filePath = QFileDialog::getOpenFileName(this, tr("Open file"), dir, filter);
|
||||
if (filePath.isEmpty())
|
||||
{
|
||||
return;
|
||||
}
|
||||
LoadPattern(filePath);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user