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

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

It's clearer in the relevant code.

(cherry picked from commit 18cc6c2d)
parent ee1cd1ab
Pipeline #166976 passed with stage
in 8 minutes
......@@ -452,11 +452,11 @@ void WidgetExplorer::immutabilityChanged(Plasma::Types::ImmutabilityType type)
void WidgetExplorer::downloadWidgets()
{
if (d->newStuffDialog.isNull()) {
d->newStuffDialog = new KNS3::QtQuickDialogWrapper(QStringLiteral("plasmoids.knsrc"));
connect(d->newStuffDialog, &KNS3::QtQuickDialogWrapper::closed, d->newStuffDialog, &QObject::deleteLater);
if (WidgetExplorerPrivate::newStuffDialog.isNull()) {
WidgetExplorerPrivate::newStuffDialog = new KNS3::QtQuickDialogWrapper(QStringLiteral("plasmoids.knsrc"));
connect(WidgetExplorerPrivate::newStuffDialog, &KNS3::QtQuickDialogWrapper::closed, WidgetExplorerPrivate::newStuffDialog, &QObject::deleteLater);
d->newStuffDialog->open();
WidgetExplorerPrivate::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