c68eb5c6d1
- fix Plasma PopupApplet configuration interfering with weather applet (#495998)
27 lines
997 B
Diff
27 lines
997 B
Diff
Index: plasma/popupapplet.cpp
|
|
===================================================================
|
|
--- plasma/popupapplet.cpp (revision 937997)
|
|
+++ plasma/popupapplet.cpp (revision 937998)
|
|
@@ -535,8 +535,8 @@
|
|
{
|
|
//Reposition the dialog
|
|
if (dialog) {
|
|
- KConfigGroup sizeGroup = q->config();
|
|
- sizeGroup = KConfigGroup(&sizeGroup, "PopupApplet");
|
|
+ KConfigGroup *mainGroup = static_cast<Applet*>(q)->d->mainConfigGroup();
|
|
+ KConfigGroup sizeGroup(mainGroup, "PopupApplet");
|
|
sizeGroup.writeEntry("DialogHeight", dialog->height());
|
|
sizeGroup.writeEntry("DialogWidth", dialog->width());
|
|
|
|
@@ -559,8 +559,8 @@
|
|
return;
|
|
}
|
|
|
|
- KConfigGroup sizeGroup = q->config();
|
|
- sizeGroup = KConfigGroup(&sizeGroup, "PopupApplet");
|
|
+ KConfigGroup *mainGroup = static_cast<Applet*>(q)->d->mainConfigGroup();
|
|
+ KConfigGroup sizeGroup(mainGroup, "PopupApplet");
|
|
|
|
Q_ASSERT(q->containment());
|
|
Q_ASSERT(q->containment()->corona());
|