debugger: fix thinko in time out computation

(cherry picked from commit 33bdf42953)
This commit is contained in:
hjk
2009-12-09 18:46:03 +01:00
committed by con
parent db68ca5b8d
commit e80e5e5580
2 changed files with 2 additions and 5 deletions

View File

@@ -195,8 +195,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()

View File

@@ -94,9 +94,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>