From 576504902736b0de42fdc90b16c2027cfb520af7 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 6 Oct 2018 16:37:22 +0200 Subject: Force .dgedit filename postfix when saving. --- src/mainwindow.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mainwindow.cc') 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(); -- cgit v1.2.3