mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 08:40:53 +01:00
For the Flatpak package : remove the file name extension added
automatically to the saved files even if the user sets an unknown file extension for the program.
This commit is contained in:
@@ -1237,9 +1237,9 @@ bool QETElementEditor::slot_saveAsFile()
|
||||
if (fn.isEmpty())
|
||||
return(false);
|
||||
|
||||
//If the name doesn't end by .elmt, we add it
|
||||
if (!fn.endsWith(".elmt", Qt::CaseInsensitive))
|
||||
fn += ".elmt";
|
||||
// //If the name doesn't end by .elmt, we add it
|
||||
// if (!fn.endsWith(".elmt", Qt::CaseInsensitive))
|
||||
// fn += ".elmt";
|
||||
|
||||
bool result_save = toFile(fn);
|
||||
//If the save success, the filename is keep
|
||||
|
||||
Reference in New Issue
Block a user