Mercurial > hg > sonic-visualiser
comparison main/MainWindow.cpp @ 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 | e8881f405b8f |
children | 110eecb5d9f6 |
comparison
equal
deleted
inserted
replaced
594:854668a6a33a | 596:e37154e52d89 |
---|---|
2059 action->setCheckable(true); | 2059 action->setCheckable(true); |
2060 action->setChecked(true); | 2060 action->setChecked(true); |
2061 action->setShortcut(tr("1")); | 2061 action->setShortcut(tr("1")); |
2062 action->setStatusTip(tr("Navigate")); | 2062 action->setStatusTip(tr("Navigate")); |
2063 connect(action, SIGNAL(triggered()), this, SLOT(toolNavigateSelected())); | 2063 connect(action, SIGNAL(triggered()), this, SLOT(toolNavigateSelected())); |
2064 connect(this, SIGNAL(replacedDocument()), action, SLOT(trigger())); | |
2064 group->addAction(action); | 2065 group->addAction(action); |
2065 m_keyReference->registerShortcut(action); | 2066 m_keyReference->registerShortcut(action); |
2066 m_toolActions[ViewManager::NavigateMode] = action; | 2067 m_toolActions[ViewManager::NavigateMode] = action; |
2067 | 2068 |
2068 action = toolbar->addAction(il.load("select"), | 2069 action = toolbar->addAction(il.load("select"), |