debugger: make assignment of simple types work again

This commit is contained in:
hjk
2009-03-19 15:33:11 +01:00
parent 00be68701e
commit 45e7ccc0fa
4 changed files with 14 additions and 8 deletions

View File

@@ -966,7 +966,10 @@ void DebuggerManager::exitDebugger()
void DebuggerManager::assignValueInDebugger()
{
if (QAction *action = qobject_cast<QAction *>(sender())) {
qDebug() << "HANDLING " << action->data().toString();
QString str = action->data().toString();
int i = str.indexOf('=');
if (i != -1)
assignValueInDebugger(str.left(i), str.mid(i + 1));
}
}
void DebuggerManager::assignValueInDebugger(const QString &expr, const QString &value)