Verified Commit 18cc6c2d authored by Fushan Wen's avatar Fushan Wen
Browse files

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

It's clearer in the relevant code.
parent 02e5a784
Pipeline #166964 passed with stage
in 13 minutes and 12 seconds
......@@ -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