summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2018-10-06 16:37:22 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2018-10-06 16:37:22 +0200
commit576504902736b0de42fdc90b16c2027cfb520af7 (patch)
tree085e87c3f1b0489d646f2c5f5552d461c5e5fa6b
parentb2deb477567aa4739d3340aa9d24309277ed5bef (diff)
Force .dgedit filename postfix when saving.
-rw-r--r--src/mainwindow.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mainwindow.cc b/src/mainwindow.cc
index ace6e5e..db1e557 100644
--- a/src/mainwindow.cc
+++ b/src/mainwindow.cc
@@ -570,6 +570,11 @@ void MainWindow::saveProjectAs()
return;
}
+ if(filename.right(7) != ".dgedit")
+ {
+ filename += ".dgedit";
+ }
+
project.setProjectFile(filename);
saveProject();