diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index 070ab9a82cea4785f82150a2c44c272b2a55591c..dde22527f5a136fd18151866f0521b7496423520 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -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() diff --git a/src/plugins/debugger/gdb/gdboptionspage.ui b/src/plugins/debugger/gdb/gdboptionspage.ui index df703a5692c2944844ac289791a91c84f568e0c8..801b67bb2a220548526c3dd5f783723dddbf7b4b 100644 --- a/src/plugins/debugger/gdb/gdboptionspage.ui +++ b/src/plugins/debugger/gdb/gdboptionspage.ui @@ -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>