##// END OF EJS Templates
clarify close dialog on qtconsole...
MinRK -
Show More
@@ -818,12 +818,16 class MainWindow(QtGui.QMainWindow):
818 818 okay = QtGui.QMessageBox.Ok
819 819
820 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 826 closeall = QtGui.QPushButton("&Yes, quit everything", self)
823 827 closeall.setShortcut('Y')
824 828 box = QtGui.QMessageBox(QtGui.QMessageBox.Question,
825 829 title, msg)
826 # box.setInformativeText(info)
830 box.setInformativeText(info)
827 831 box.addButton(cancel)
828 832 box.addButton(closeall, QtGui.QMessageBox.YesRole)
829 833 box.setDefaultButton(closeall)
General Comments 0
You need to be logged in to leave comments. Login now