diff options
author | con <qtc-committer@nokia.com> | 2010-01-06 15:55:51 +0100 |
---|---|---|
committer | con <qtc-committer@nokia.com> | 2010-01-06 15:57:11 +0100 |
commit | ea2101950ff00d69124dc9f0b9898aa5724ba371 (patch) | |
tree | 343b1e2a35527e4dbda53554fbe27ad9f72a6253 | |
parent | e80e5e55807289318ae8edd857c91e752a046c85 (diff) | |
download | qt-creator-ea2101950ff00d69124dc9f0b9898aa5724ba371.tar.gz |
debugger: move watchdog timeout initialization to a place where it actually can access the stored settings.
(cherry picked from commit de23834fc9ded8ad0f1360151b9160fd6b5293b5)
Conflicts:
src/plugins/debugger/gdb/gdbengine.cpp
-rw-r--r-- | src/plugins/debugger/gdb/gdbengine.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index dde22527f5..ed9860bbf8 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -195,8 +195,6 @@ GdbEngine::GdbEngine(DebuggerManager *manager) : m_commandTimer = new QTimer(this); m_commandTimer->setSingleShot(true); - 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() @@ -4376,7 +4374,8 @@ bool GdbEngine::startGdb(const QStringList &args, const QString &gdb, const QStr SLOT(readGdbStandardError())); debugMessage(_("GDB STARTED, INITIALIZING IT")); - m_commandTimer->setInterval(commandTimeoutTime()); + int timeOut = theDebuggerAction(GdbWatchdogTimeout)->value().toInt(); + m_commandTimer->setInterval(1000 * qMax(20, timeOut)); postCommand(_("show version"), CB(handleShowVersion)); postCommand(_("-interpreter-exec console \"help bb\""), |