![]() Registered Member ![]()
|
Hi,
I'm trying to find a method called when user logouts from kde. I need it to save some data in applet configuration file. I used destroy method, it works (method is called) when user removes applet, but seems that in case of logout method is not called. ![]() Is there a way to detect logout? Regards, Marcin |
![]() Administrator ![]()
|
Assuming you are using C++, the standard destructor should do what you are asking.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Thanks, You are right, the easiest way is the correct one
![]() I was afraid if I would still use KConfigGroup methods in destructor, and ... it works in case of logout. In case of applet remove I needed to save some "applet configuration data" in destroy() method (in destuctor it didn't work). |
Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]