changeset 596:e37154e52d89

Switch back to navigate mode when document is replaced (#182)
author Chris Cannam
date Wed, 24 Jul 2013 11:43:09 +0100
parents 854668a6a33a
children 110eecb5d9f6
files main/MainWindow.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/main/MainWindow.cpp	Wed Jul 24 11:15:28 2013 +0100
+++ b/main/MainWindow.cpp	Wed Jul 24 11:43:09 2013 +0100
@@ -2061,6 +2061,7 @@
     action->setShortcut(tr("1"));
     action->setStatusTip(tr("Navigate"));
     connect(action, SIGNAL(triggered()), this, SLOT(toolNavigateSelected()));
+    connect(this, SIGNAL(replacedDocument()), action, SLOT(trigger()));
     group->addAction(action);
     m_keyReference->registerShortcut(action);
     m_toolActions[ViewManager::NavigateMode] = action;