Verified Commit 02e5a784 authored by Fushan Wen's avatar Fushan Wen
Browse files

widgetexplorer: Delete newStuffDialog on closed

This resets the search field after the window is closed.

BUG: 452865
FIXED-IN: 5.24.5
parent 6eb2b529
Pipeline #166946 canceled with stage
......@@ -452,10 +452,12 @@ void WidgetExplorer::immutabilityChanged(Plasma::Types::ImmutabilityType type)
void WidgetExplorer::downloadWidgets()
if (!d->newStuffDialog) {
if (d->newStuffDialog.isNull()) {
d->newStuffDialog = new KNS3::QtQuickDialogWrapper(QStringLiteral("plasmoids.knsrc"));
connect(d->newStuffDialog, &KNS3::QtQuickDialogWrapper::closed, d->newStuffDialog, &QObject::deleteLater);
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