Don't switch away from debug mode when jumping to line via locator

Task-number: QTCREATORBUG-3192
This commit is contained in:
con
2010-12-01 15:08:43 +01:00
parent fa2ae04ba3
commit 7c35a577cc
3 changed files with 4 additions and 4 deletions

View File

@@ -151,6 +151,8 @@ IMode *ModeManager::mode(const QString &id) const
void ModeManager::activateModeType(const QString &type)
{
if (currentMode() && currentMode()->type() == type)
return;
int index = -1;
for (int i = 0; i < d->m_modes.count(); ++i) {
if (d->m_modes.at(i)->type() == type) {