mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Do not use default filename as default for "Save as"
This may sound counterintuitive but it actually makes sense. If you have a default filename that's the name of you "normal working file". If you want "Save as" something, that by definition is NOT your normal working file but a subset or an experiment or something. And you most definitely do NOT want to overwrite your default file with that. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c86d055db7
commit
ed6a42f6f2
1 changed files with 1 additions and 6 deletions
|
@ -965,12 +965,7 @@ void MainWindow::recentFileTriggered(bool checked)
|
|||
int MainWindow::file_save_as(void)
|
||||
{
|
||||
QString filename;
|
||||
const char *default_filename;
|
||||
|
||||
if (existing_filename)
|
||||
default_filename = existing_filename;
|
||||
else
|
||||
default_filename = prefs.default_filename;
|
||||
const char *default_filename = existing_filename;
|
||||
filename = QFileDialog::getSaveFileName(this, tr("Save File as"), default_filename,
|
||||
tr("Subsurface XML files (*.ssrf *.xml *.XML)"));
|
||||
if (filename.isNull() || filename.isEmpty())
|
||||
|
|
Loading…
Add table
Reference in a new issue