Verified Commit e881c89d authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

Revert "widgetexplorer: Replace `d->newStuffDialog` with `WidgetExplorerPrivate::newStuffDialog`"

This reverts commit 943a575a.
parent 068c04e0
......@@ -452,11 +452,11 @@ void WidgetExplorer::immutabilityChanged(Plasma::Types::ImmutabilityType type)
void WidgetExplorer::downloadWidgets()
{
if (WidgetExplorerPrivate::newStuffDialog.isNull()) {
WidgetExplorerPrivate::newStuffDialog = new KNS3::QtQuickDialogWrapper(QStringLiteral("plasmoids.knsrc"));
connect(WidgetExplorerPrivate::newStuffDialog, &KNS3::QtQuickDialogWrapper::closed, WidgetExplorerPrivate::newStuffDialog, &QObject::deleteLater);
if (d->newStuffDialog.isNull()) {
d->newStuffDialog = new KNS3::QtQuickDialogWrapper(QStringLiteral("plasmoids.knsrc"));
connect(d->newStuffDialog, &KNS3::QtQuickDialogWrapper::closed, d->newStuffDialog, &QObject::deleteLater);
WidgetExplorerPrivate::newStuffDialog->open();
d->newStuffDialog->open();
}
Q_EMIT shouldClose();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment