Verified Commit ee1cd1ab 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

(cherry picked from commit 02e5a784)
parent 87f06d81
......@@ -452,10 +452,12 @@ void WidgetExplorer::immutabilityChanged(Plasma::Types::ImmutabilityType type)
void WidgetExplorer::downloadWidgets()
{
if (!d->newStuffDialog) {
d->newStuffDialog = new KNS3::QtQuickDialogWrapper(QLatin1String("plasmoids.knsrc"));
if (d->newStuffDialog.isNull()) {
d->newStuffDialog = new KNS3::QtQuickDialogWrapper(QStringLiteral("plasmoids.knsrc"));
connect(d->newStuffDialog, &KNS3::QtQuickDialogWrapper::closed, d->newStuffDialog, &QObject::deleteLater);
d->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