This commit is contained in:
hjk
2010-10-28 08:55:50 +02:00
parent a3b24d233c
commit 78b2f25791
3 changed files with 12 additions and 5 deletions

View File

@@ -2293,7 +2293,11 @@ void DebuggerPluginPrivate::setInitialState()
void DebuggerPluginPrivate::updateState(DebuggerEngine *engine)
{
QTC_ASSERT(engine != 0 && m_watchersWindow->model() != 0 && m_returnWindow->model() != 0, return);
QTC_ASSERT(engine, return);
QTC_ASSERT(m_watchersWindow->model(), return);
QTC_ASSERT(m_returnWindow->model(), return);
QTC_ASSERT(!engine->isSlaveEngine(), return);
m_threadBox->setCurrentIndex(engine->threadsHandler()->currentThread());
m_watchersWindow->setVisible(
@@ -2301,14 +2305,16 @@ void DebuggerPluginPrivate::updateState(DebuggerEngine *engine)
m_returnWindow->setVisible(
m_returnWindow->model()->rowCount(QModelIndex()) > 0);
//m_plugin->showMessage(QString("PLUGIN SET STATE: ")
// + DebuggerEngine::stateName(engine->state()), LogStatus);
//qDebug() << "PLUGIN SET STATE: " << engine->state();
if (m_state == engine->state())
return;
m_state = engine->state();
bool actionsEnabled = DebuggerEngine::debuggerActionsEnabled(m_state);
//qDebug() << "PLUGIN SET STATE: " << m_state;
ICore *core = ICore::instance();
ActionManager *am = core->actionManager();
if (m_state == DebuggerNotReady) {