Helpviewer/HelpTabWidget.py

changeset 1636
6a25bb84e2a3
parent 1539
b2d98c2e2e43
child 1645
73904ca06d2d
equal deleted inserted replaced
1631:40ac3aee809c 1636:6a25bb84e2a3
644 """ 644 """
645 Public method to check, if the application should be shut down. 645 Public method to check, if the application should be shut down.
646 646
647 @return flag indicating a shut down (boolean) 647 @return flag indicating a shut down (boolean)
648 """ 648 """
649 if self.count() > 1: 649 if self.count() > 1 and Preferences.getHelp("WarnOnMultipleClose"):
650 mb = E5MessageBox.E5MessageBox(E5MessageBox.Information, 650 mb = E5MessageBox.E5MessageBox(E5MessageBox.Information,
651 self.trUtf8("Are you sure you want to close the window?"), 651 self.trUtf8("Are you sure you want to close the window?"),
652 self.trUtf8("""Are you sure you want to close the window?\n""" 652 self.trUtf8("""Are you sure you want to close the window?\n"""
653 """You have %n tab(s) open.""", "", self.count()), 653 """You have %n tab(s) open.""", "", self.count()),
654 modal=True, 654 modal=True,

eric ide

mercurial