From 076bc1446bd5a384ad1310bcebf0b036f9052d2d Mon Sep 17 00:00:00 2001 From: Tim Jenssen Date: Tue, 12 Aug 2014 11:26:22 +0200 Subject: [PATCH] QmlDesigner: remove second setSource call Change-Id: Ieee470f71b5bdd887986c12b214dc10702f48cc3 Reviewed-by: Thomas Hartmann --- .../components/propertyeditor/quick2propertyeditorview.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/plugins/qmldesigner/components/propertyeditor/quick2propertyeditorview.cpp b/src/plugins/qmldesigner/components/propertyeditor/quick2propertyeditorview.cpp index 4aa9efbf5a9..2b1251bd723 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/quick2propertyeditorview.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/quick2propertyeditorview.cpp @@ -41,11 +41,8 @@ namespace QmlDesigner { void Quick2PropertyEditorView::execute() { m_view.setSource(m_source); - - if (!m_source.isEmpty()) { - m_view.setSource(m_source); + if (!m_source.isEmpty()) connect(&m_view, SIGNAL(statusChanged(QQuickView::Status)), this, SLOT(continueExecute())); - } } Quick2PropertyEditorView::Quick2PropertyEditorView(QWidget *parent) :