<div dir="ltr">Hi gentlemen,<div><br></div><div>I've got a minor issue with an application of mine, where a QDialog instance, when the "X" is clicked on the upper right corner, it closes my entire application and not just the dialog!</div>
<div><br></div><div>My application is a QSystemTrayIcon, and I have this method spawning a subclass of QDialog</div><div><br></div><div><div> def click_trap(self, value):</div><div> ''' Left click tray function '''</div>
<div> if value == self.Trigger: #left click!</div><div> </div><div> # create or restore</div><div> if not self.dialog:</div><div> self.dialog = RestartDialog(self)</div>
<div><br></div><div> self.dialog.bring_to_front()</div><div> self.result = self.dialog.exec_()</div><div> else:</div>
<div> self.dialog.bring_to_front()</div><div> self.dialog.show()</div></div><div><br></div><div><br></div><div><br></div><div>And yet when I close the dialog it terminated the the entire system tray application!</div>
<div><br></div><div>cheers,</div><div>Jordan</div></div>