kdelibs/kdelibs-4.2.2-popupapplet-config.patch
Kevin Kofler 8acc265660 * Mon Apr 20 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> 4.2.2-8
- fix Plasma PopupApplet configuration interfering with weather applet (#495998)
2009-04-20 12:45:40 +00:00

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());