Commit 815c6ae8 authored by Willyanto Willyanto's avatar Willyanto Willyanto Committed by Nate Graham
Browse files

Fix opening more than one get new applets windows

A new instance WidgetExplorer is created everytime we open get new
applets window. Each and every instance of WidgetExplorer has its own
newStuffDialog. This means that downloadWidgets method will always
create new instance of QtQuickDialogWrapper due to the default value of
newStuffDialog is null.

Change newStuffDialog to static so that it will be shared to every
instances of WidgetExplorer. This prevents another get new applets
window to be opened.

BUG: 412765
parent 0aecff20
......@@ -110,11 +110,13 @@ public:
KCategorizedItemsViewModels::DefaultFilterModel filterModel;
bool showSpecialFilters = true;
DefaultItemFilterProxyModel filterItemModel;
QPointer<KNS3::QtQuickDialogWrapper> newStuffDialog;
static QPointer<KNS3::QtQuickDialogWrapper> newStuffDialog;
QScopedPointer<KActivities::Consumer> activitiesConsumer;
QPointer<KNS3::QtQuickDialogWrapper> WidgetExplorerPrivate::newStuffDialog;
void WidgetExplorerPrivate::initFilters()
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