summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimjees Abraham <simjees.abraham@nokia.com>2012-06-06 11:36:09 +0200
committerChristiaan Janssen <christiaan.janssen@nokia.com>2012-06-06 12:16:15 +0200
commit32f25fcfc19b690245945cfd1e7699f82470573c (patch)
tree79600d5082caf97db69d88d605064e5915e78224
parent79d35cd8861401ab51998e81370ab5caf3ab7599 (diff)
downloadqt-creator-32f25fcfc19b690245945cfd1e7699f82470573c.tar.gz
Apply on Save: Infobar displayed cleared when debugging ends
Infobar displayed cleared if the user decides to end debugging without reloading Qml. Change-Id: Ic502c9b75a4f4e41aa3e843706f9e1fc0113f0e7 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com> Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
-rw-r--r--src/plugins/debugger/qml/qmllivetextpreview.cpp5
-rw-r--r--src/plugins/debugger/qml/qmllivetextpreview.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/debugger/qml/qmllivetextpreview.cpp b/src/plugins/debugger/qml/qmllivetextpreview.cpp
index ee7ade0c95..c3b26fded3 100644
--- a/src/plugins/debugger/qml/qmllivetextpreview.cpp
+++ b/src/plugins/debugger/qml/qmllivetextpreview.cpp
@@ -380,6 +380,11 @@ QmlLiveTextPreview::QmlLiveTextPreview(const QmlJS::Document::Ptr &doc,
SLOT(onAutomaticUpdateFailed()));
}
+QmlLiveTextPreview::~QmlLiveTextPreview()
+{
+ removeOutofSyncInfo();
+}
+
void QmlLiveTextPreview::associateEditor(Core::IEditor *editor)
{
using namespace TextEditor;
diff --git a/src/plugins/debugger/qml/qmllivetextpreview.h b/src/plugins/debugger/qml/qmllivetextpreview.h
index 3353afcccd..3565a86ebf 100644
--- a/src/plugins/debugger/qml/qmllivetextpreview.h
+++ b/src/plugins/debugger/qml/qmllivetextpreview.h
@@ -61,6 +61,7 @@ public:
const QmlJS::Document::Ptr &initDoc,
QmlInspectorAdapter *inspectorAdapter,
QObject *parent = 0);
+ ~QmlLiveTextPreview();
void associateEditor(Core::IEditor *editor);
void unassociateEditor(Core::IEditor *editor);