Show More
@@ -818,12 +818,16 b' class MainWindow(QtGui.QMainWindow):' | |||||
818 | okay = QtGui.QMessageBox.Ok |
|
818 | okay = QtGui.QMessageBox.Ok | |
819 |
|
819 | |||
820 | if self.confirm_exit: |
|
820 | if self.confirm_exit: | |
821 | msg = "Close all tabs, stop all kernels, and Quit?" |
|
821 | if self.tab_widget.count() > 1: | |
|
822 | msg = "Close all tabs, stop all kernels, and Quit?" | |||
|
823 | else: | |||
|
824 | msg = "Close console, stop kernel, and Quit?" | |||
|
825 | info = "Kernels not started here (e.g. notebooks) will be left alone." | |||
822 | closeall = QtGui.QPushButton("&Yes, quit everything", self) |
|
826 | closeall = QtGui.QPushButton("&Yes, quit everything", self) | |
823 | closeall.setShortcut('Y') |
|
827 | closeall.setShortcut('Y') | |
824 | box = QtGui.QMessageBox(QtGui.QMessageBox.Question, |
|
828 | box = QtGui.QMessageBox(QtGui.QMessageBox.Question, | |
825 | title, msg) |
|
829 | title, msg) | |
826 |
|
|
830 | box.setInformativeText(info) | |
827 | box.addButton(cancel) |
|
831 | box.addButton(cancel) | |
828 | box.addButton(closeall, QtGui.QMessageBox.YesRole) |
|
832 | box.addButton(closeall, QtGui.QMessageBox.YesRole) | |
829 | box.setDefaultButton(closeall) |
|
833 | box.setDefaultButton(closeall) |
General Comments 0
You need to be logged in to leave comments.
Login now