summaryrefslogtreecommitdiff
path: root/src/mainwindow.cc
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2013-07-12 13:54:29 +0000
committerStijn Buys <ingar@osirion.org>2013-07-12 13:54:29 +0000
commitceeac6bcacfe2296ac9b40bc5b54b525307d2dd5 (patch)
treed4343985af6f21c2242bdea81965bb6468882a28 /src/mainwindow.cc
parent1ee4d49f99e7925b9ac19aadc944007bd4320389 (diff)
Clear the current filename when using Game->New,
Updates the TODO list.
Diffstat (limited to 'src/mainwindow.cc')
-rw-r--r--src/mainwindow.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mainwindow.cc b/src/mainwindow.cc
index 4f252d3..5a80459 100644
--- a/src/mainwindow.cc
+++ b/src/mainwindow.cc
@@ -21,7 +21,7 @@ void MainWindow::initActions()
action_new = new QAction(tr("&New"), this);
action_new->setShortcuts(QKeySequence::New);
action_new->setStatusTip(tr("Start a new game"));
- connect(action_new, SIGNAL(triggered()), mainwindow_solverwindow, SLOT(clear()));
+ connect(action_new, SIGNAL(triggered()), this, SLOT(doNew()));
// Game -> Load
action_load = new QAction(tr("&Load..."), this);
@@ -113,6 +113,12 @@ void MainWindow::updateTitle()
}
}
+void MainWindow::doNew()
+{
+ mainwindow_solverwindow->clear();
+ updateTitle();
+}
+
void MainWindow::doSave()
{
mainwindow_solverwindow->save();