Commit 9aa64498 authored by Olivier Goffart's avatar Olivier Goffart
Browse files

Qml Debugger: set the internal on the poll timer.

(Else, we do do not have enough time to start the observer)
parent 0b72a9ef
...@@ -50,6 +50,7 @@ QmlAdapter::QmlAdapter(DebuggerEngine *engine, QObject *parent) ...@@ -50,6 +50,7 @@ QmlAdapter::QmlAdapter(DebuggerEngine *engine, QObject *parent)
, m_conn(0) , m_conn(0)
{ {
m_connectionTimer->setInterval(200);
connect(m_connectionTimer, SIGNAL(timeout()), SLOT(pollInferior())); connect(m_connectionTimer, SIGNAL(timeout()), SLOT(pollInferior()));
} }
...@@ -197,7 +198,7 @@ void QmlAdapter::setMaxConnectionAttempts(int maxAttempts) ...@@ -197,7 +198,7 @@ void QmlAdapter::setMaxConnectionAttempts(int maxAttempts)
} }
void QmlAdapter::setConnectionAttemptInterval(int interval) void QmlAdapter::setConnectionAttemptInterval(int interval)
{ {
m_connectionAttemptInterval = interval; m_connectionTimer->setInterval(interval);
} }
} // namespace Internal } // namespace Internal
......
...@@ -86,7 +86,6 @@ private: ...@@ -86,7 +86,6 @@ private:
QTimer *m_connectionTimer; QTimer *m_connectionTimer;
int m_connectionAttempts; int m_connectionAttempts;
int m_maxConnectionAttempts; int m_maxConnectionAttempts;
int m_connectionAttemptInterval;
QDeclarativeDebugConnection *m_conn; QDeclarativeDebugConnection *m_conn;
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
enum { enum {
MaxConnectionAttempts = 50, MaxConnectionAttempts = 50,
ConnectionAttemptDefaultInterval = 75 ConnectionAttemptDefaultInterval = 200
}; };
namespace Debugger { namespace Debugger {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment