diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index f03b07a7004efbbe25035846a39d9389e6ec5287..6d1e91ef856347c99dab9a668756f4899d72f55b 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -194,8 +194,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() diff --git a/src/plugins/debugger/gdb/gdboptionspage.ui b/src/plugins/debugger/gdb/gdboptionspage.ui index 3a46c86fd495a1c0d19e73617b489c1660a3ad28..55f813f5be544ce77d7cc45ac3621cb1965afc07 100644 --- a/src/plugins/debugger/gdb/gdboptionspage.ui +++ b/src/plugins/debugger/gdb/gdboptionspage.ui @@ -97,9 +97,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>