I am trying to show a dialog from a popup menu.
When I RMB to bring up the popup menu and click on the item, it calls dialog.showAll.
The dialog pops up.
Now, if I close it and repeat this process(Without shutting down the app), the second time the dialog pops up without a title bar(may be completely empty as I have no items on it)... and when I close it again the app and debugger crash ;/
The code above is literally that simple. I just call showAll.
I'm not sure if I'm suppose to "clean up" something before I show it again and if that is the reason why it is behaving that way or if it's a more serious bug.
I'm using the same code all through out my app and it is working fine... only on this popup is there an issue.
I added some stuff to the dialog and it doesn't show up ;/
If run this code at the start of the app, it does not crash. When I then run the showAll inside the onActivate it is blank and crashes when clicked.
It seems that after the dialog has been shown once, calling showAll inside onActivate causes major issues.
Any ideas why this might be? Remember, it strictly seems to be an issue with using showAll inside OnActivate more than once.
It happens also with addOnButtonPress. In fact, it seems to happen when ever it is called in one of the handlers I'm using to try and get it to pop up.
None of the other dialog's are effected even when this one craps out.