mirror of
https://github.com/huderlem/porymap.git
synced 2026-03-26 03:54:42 -05:00
Stop warning when canceling custom filepath dialog
This commit is contained in:
parent
bbd86673c5
commit
69efdc34d0
|
|
@ -393,6 +393,8 @@ QString ProjectSettingsEditor::chooseProjectFile(const QString &defaultFilepath)
|
|||
// Default filepath is not a folder, choose a new file
|
||||
path = FileDialog::getOpenFileName(this, "Choose Project File", startDir);
|
||||
}
|
||||
if (path.isEmpty())
|
||||
return path;
|
||||
|
||||
if (!path.startsWith(this->baseDir)){
|
||||
// Most of Porymap's file-parsing code for project files will assume that filepaths
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user