Fixing crash when closing the toolbar config dialog. I had been invoking KEditToolbar directly, but the API docs clued me in to the fact that this is not necessary. As long as I have an action named "options_configure_toolbars" in my XMLGUI file, then I don't need to do anything else. Apparently doing it manually is a bit worse than unnecessary, because the mysterious crash I had doing it manually is gone now.
Actually, there's one more detail I needed to make the auto-code work. By looking at the code of other apps, I learned that I need to have setXMLFile("kstarsui.rc") and setupGUI().
It sure would be nice if we had some up to date documentation on how this XMLGUI stuff is supposed to work... |
|
|