reposition the popup after saving, so won't jump always to the old size

svn path=/trunk/KDE/kdelibs/; revision=894071
This commit is contained in:
Marco Martin 2008-12-07 20:20:28 +00:00
parent 9116edc392
commit 212a4238bd

View File

@ -298,7 +298,6 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints)
}
dialog->adjustSize();
updateDialogPosition();
if (icon && lay) {
lay->addItem(icon);
@ -476,13 +475,13 @@ void PopupAppletPrivate::dialogSizeChanged()
{
//Reposition the dialog
if (dialog) {
updateDialogPosition();
KConfigGroup sizeGroup = q->config();
sizeGroup = KConfigGroup(&sizeGroup, "PopupApplet");
sizeGroup.writeEntry("DialogHeight", dialog->height());
sizeGroup.writeEntry("DialogWidth", dialog->width());
updateDialogPosition();
emit q->configNeedsSaving();
}
}