##// END OF EJS Templates
Make cancel in the close dialog behave right. Triggers event.ignore() when canceling
Jens H. Nielsen -
Show More
@@ -835,6 +835,7 b' class MainWindow(QtGui.QMainWindow):'
835 reply = okay
835 reply = okay
836
836
837 if reply == cancel:
837 if reply == cancel:
838 event.ignore()
838 return
839 return
839 if reply == okay:
840 if reply == okay:
840 while self.tab_widget.count() >= 1:
841 while self.tab_widget.count() >= 1:
@@ -842,6 +843,5 b' class MainWindow(QtGui.QMainWindow):'
842 widget = self.active_frontend
843 widget = self.active_frontend
843 widget._confirm_exit = False
844 widget._confirm_exit = False
844 self.close_tab(widget)
845 self.close_tab(widget)
845
846 event.accept()
846 event.accept()
847
847
General Comments 0
You need to be logged in to leave comments. Login now