# HG changeset patch # User Chris Cannam # Date 1374662589 -3600 # Node ID e37154e52d8946164c846e15e614d0141d67e40f # Parent 854668a6a33a5138294b426952f795fa4637299f Switch back to navigate mode when document is replaced (#182) diff -r 854668a6a33a -r e37154e52d89 main/MainWindow.cpp --- 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;