Commit 33bdf429 authored by hjk's avatar hjk
Browse files

debugger: fix thinko in time out computation

parent 7a9217e0
...@@ -194,8 +194,8 @@ GdbEngine::GdbEngine(DebuggerManager *manager) : ...@@ -194,8 +194,8 @@ GdbEngine::GdbEngine(DebuggerManager *manager) :
m_commandTimer = new QTimer(this); m_commandTimer = new QTimer(this);
m_commandTimer->setSingleShot(true); m_commandTimer->setSingleShot(true);
m_commandTimer->setInterval( QVariant timeOut = theDebuggerAction(GdbWatchdogTimeout)->value();
1000 * qMin(20, theDebuggerAction(GdbWatchdogTimeout)->value().toInt())); m_commandTimer->setInterval(1000 * qMax(20, timeOut.toInt()));
connect(m_commandTimer, SIGNAL(timeout()), SLOT(commandTimeout())); connect(m_commandTimer, SIGNAL(timeout()), SLOT(commandTimeout()));
// Needs no resetting in initializeVariables() // Needs no resetting in initializeVariables()
......
...@@ -97,9 +97,6 @@ on slow machines. In this case the value should be increased.</string> ...@@ -97,9 +97,6 @@ on slow machines. In this case the value should be increased.</string>
<property name="layoutDirection"> <property name="layoutDirection">
<enum>Qt::LeftToRight</enum> <enum>Qt::LeftToRight</enum>
</property> </property>
<property name="specialValueText">
<string>&lt;unlimited&gt;</string>
</property>
<property name="minimum"> <property name="minimum">
<number>20</number> <number>20</number>
</property> </property>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment