View Single Post
Posts: 2,154 | Thanked: 8,464 times | Joined on May 2010
#1482
Originally Posted by gidzzz View Post
But does that patch actually change anything? As I have written above, I can't test it. OMP sends commands to MAFW with the help of libmafw.

And one more thing: are you sure that QDBus::BlockWithGui is safe to use? For example what do you think about this scenario:
1.I try to set the ringtone, causing SingleAlbumView:nRingingToneUriReceived() to be called.
2.A D-Bus message is sent and an event loop is started, so I can keep working wit the GUI.
3.I choose to close the window.
4.The window is destroyed.
5.A D-Bus reply arrives, control goes back to SingleAlbumView:nRingingToneUriReceived().
6.QMaemo5InformationBox is shown with this (SingleAlbumView) as parent, but this had been destroyed -- BAM!
Hm right, rather not use it.
 

The Following 3 Users Say Thank You to pali For This Useful Post: