[PATCH 2/5] Add action to 'File->New'

Lubomir I. Ivanov neolit123 at gmail.com
Wed Jun 26 05:07:50 PDT 2013


From: "Lubomir I. Ivanov" <neolit123 at gmail.com>

File->New in the GTK version performed the same as File->Close.
Creating a new file may also ask the user if the current file has
to be saved.

Signed-off-by: Lubomir I. Ivanov <neolit123 at gmail.com>
---
 qt-ui/mainwindow.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 1144fa1..bac25a3 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -86,7 +86,7 @@ void MainWindow::redrawProfile()
 
 void MainWindow::on_actionNew_triggered()
 {
-	qDebug("actionNew");
+	on_actionClose_triggered();
 }
 
 void MainWindow::on_actionOpen_triggered()
-- 
1.7.11.msysgit.0



More information about the subsurface mailing list