Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Fix a crash when opening Text Properties on Windows

Dmitry Kazakov86a1285dc415
diff --git a/qmlmodules/components/KisQmlPopupWidgetManager.cpp b/qmlmodules/components/KisQmlPopupWidgetManager.cpp
index b6bea83f2f..9ee4975adc 100644
--- a/qmlmodules/components/KisQmlPopupWidgetManager.cpp
+++ b/qmlmodules/components/KisQmlPopupWidgetManager.cpp
@@ -28,7 +28,7 @@ KisQmlPopupWidgetManager::KisQmlPopupWidgetManager(QObject *parent)
: QObject(parent)
, d(new Private)
{
- d->popup = new KisQQuickPopupWidget(qApp->activeWindow());
+ d->popup = new KisQQuickPopupWidget();
connect(this, SIGNAL(marginsChanged()), this, SLOT(updateMargins()));
connect(this, SIGNAL(topMarginChanged()), this, SLOT(updateMargins()));
@@ -40,7 +40,7 @@ KisQmlPopupWidgetManager::KisQmlPopupWidgetManager(QObject *parent)
KisQmlPopupWidgetManager::~KisQmlPopupWidgetManager()
{
-
+ d->popup->deleteLater();
}
qreal KisQmlPopupWidgetManager::x() const