From 32f25fcfc19b690245945cfd1e7699f82470573c Mon Sep 17 00:00:00 2001 From: Simjees Abraham Date: Wed, 6 Jun 2012 11:36:09 +0200 Subject: 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 Reviewed-by: Christiaan Janssen --- src/plugins/debugger/qml/qmllivetextpreview.cpp | 5 +++++ src/plugins/debugger/qml/qmllivetextpreview.h | 1 + 2 files changed, 6 insertions(+) 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); -- cgit v1.2.1