summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2009-10-28 05:51:54 (GMT)
committerBea Lam <bea.lam@nokia.com>2009-10-28 05:51:54 (GMT)
commitf0f2941d6dccd4bd402861c01797bb210c516962 (patch)
tree8c54d4751cd729b12b39586faafcb531e362ebd0 /tools
parent25f87fede4b5fd367242be80f314310e7be6e0a5 (diff)
downloadQt-f0f2941d6dccd4bd402861c01797bb210c516962.zip
Qt-f0f2941d6dccd4bd402861c01797bb210c516962.tar.gz
Qt-f0f2941d6dccd4bd402861c01797bb210c516962.tar.bz2
Must delete query objects once disconnected.
Diffstat (limited to 'tools')
-rw-r--r--tools/qmldebugger/creatorplugin/qmlinspectormode.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/qmldebugger/creatorplugin/qmlinspectormode.cpp b/tools/qmldebugger/creatorplugin/qmlinspectormode.cpp
index aec661c..a90ca2c 100644
--- a/tools/qmldebugger/creatorplugin/qmlinspectormode.cpp
+++ b/tools/qmldebugger/creatorplugin/qmlinspectormode.cpp
@@ -168,10 +168,17 @@ void QmlInspectorMode::connectionStateChanged()
switch (m_conn->state()) {
default:
case QAbstractSocket::UnconnectedState:
+ {
emit statusMessage(tr("[Inspector] disconnected.\n\n"));
m_addressEdit->setEnabled(true);
m_portSpinBox->setEnabled(true);
+
+ delete m_engineQuery;
+ m_engineQuery = 0;
+ delete m_contextQuery;
+ m_contextQuery = 0;
break;
+ }
case QAbstractSocket::HostLookupState:
emit statusMessage(tr("[Inspector] resolving host..."));
break;
@@ -378,7 +385,7 @@ void QmlInspectorMode::initWidgets()
m_propertiesWidget = new ObjectPropertiesView;
m_watchTableView = new WatchTableView(m_watchTableModel);
m_frameRateWidget = new CanvasFrameRate;
- m_expressionWidget = new ExpressionQueryWidget;
+ m_expressionWidget = new ExpressionQueryWidget(ExpressionQueryWidget::SeparateEntryMode);
// FancyMainWindow uses widgets' window titles for tab labels
m_objectTreeWidget->setWindowTitle(tr("Object Tree"));