forked from qt-creator/qt-creator
debugger: fix thinko in time out computation
(cherry picked from commit 33bdf42953
)
This commit is contained in:
@@ -195,8 +195,8 @@ GdbEngine::GdbEngine(DebuggerManager *manager) :
|
||||
|
||||
m_commandTimer = new QTimer(this);
|
||||
m_commandTimer->setSingleShot(true);
|
||||
m_commandTimer->setInterval(
|
||||
1000 * qMin(20, theDebuggerAction(GdbWatchdogTimeout)->value().toInt()));
|
||||
QVariant timeOut = theDebuggerAction(GdbWatchdogTimeout)->value();
|
||||
m_commandTimer->setInterval(1000 * qMax(20, timeOut.toInt()));
|
||||
connect(m_commandTimer, SIGNAL(timeout()), SLOT(commandTimeout()));
|
||||
|
||||
// Needs no resetting in initializeVariables()
|
||||
|
@@ -94,9 +94,6 @@ on slow machines. In this case the value should be increased.</string>
|
||||
<property name="layoutDirection">
|
||||
<enum>Qt::LeftToRight</enum>
|
||||
</property>
|
||||
<property name="specialValueText">
|
||||
<string><unlimited></string>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>20</number>
|
||||
</property>
|
||||
|
Reference in New Issue
Block a user