Bug 161092

Summary: Modified size of applets are forgotten when session is closed
Product: [Plasma] plasma4 Reporter: erik_hahn
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description erik_hahn 2008-04-20 23:20:34 UTC
Version:            (using Devel)
Installed from:    Compiled sources
Compiler:          gcc 4.2.3 
OS:                NetBSD

Place some plasmoids on the desktop and resize them. After ending the session (logout) and starting a new one, the applets will be at the right place but they will have the default size rather than the one you specified.
Comment 1 erik_hahn 2008-04-20 23:22:23 UTC
I've chosen the wrong OS, it's actually Gentoo Linux.
Comment 2 Julien Richard-Foy 2008-05-06 17:23:31 UTC
I don't have enough time to install a KDE development environnement, I quickly read the sources and I saw that geometry is well saved (in Plasma::Applet::save()) but it's not restored in Plasma::Applet::restore() (in file KDE/kdebase/workspace/libs/plasma/applet.cpp)
It would need to add something like :

QRectF g = c->readEntry("geometry", QRectF()) // (a better default value should be used)
setGeometry(g)
Comment 3 Julien Richard-Foy 2008-05-26 10:49:52 UTC
Revisions 807088 and 807410 fixed this problem. I think we can close this entry.
Comment 4 Aaron J. Seigo 2008-06-16 04:39:26 UTC
*** Bug has been marked as fixed ***.