Related #7173: LibraryEditor: Do not save file with empty name
This commit is contained in:
parent
4fa888ec44
commit
e9b84a4f06
|
@ -143,6 +143,9 @@ void LibraryDialog::saveCfgAs()
|
|||
tr("Save the library as"),
|
||||
path,
|
||||
filter);
|
||||
if (selectedFile.isEmpty())
|
||||
return;
|
||||
|
||||
if (!selectedFile.endsWith(".cfg", Qt::CaseInsensitive))
|
||||
selectedFile += ".cfg";
|
||||
|
||||
|
|
Loading…
Reference in New Issue