eric7/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesDefineGuardsDialog.py

branch
eric7
changeset 8322
b422b4e77d19
parent 8318
962bce857696
child 8356
68ec9c3d4de5
equal deleted inserted replaced
8319:ea11a3948f40 8322:b422b4e77d19
65 res = E5MessageBox.question( 65 res = E5MessageBox.question(
66 self, 66 self,
67 self.tr("Unsaved Changes"), 67 self.tr("Unsaved Changes"),
68 self.tr("""The guards list has been changed.""" 68 self.tr("""The guards list has been changed."""
69 """ Shall the changes be applied?"""), 69 """ Shall the changes be applied?"""),
70 E5MessageBox.StandardButtons( 70 E5MessageBox.Apply | E5MessageBox.Discard,
71 E5MessageBox.Apply |
72 E5MessageBox.Discard),
73 E5MessageBox.Apply) 71 E5MessageBox.Apply)
74 if res == E5MessageBox.Apply: 72 if res == E5MessageBox.Apply:
75 self.__applyGuards() 73 self.__applyGuards()
76 else: 74 else:
77 self.__dirtyList = False 75 self.__dirtyList = False
98 res = E5MessageBox.question( 96 res = E5MessageBox.question(
99 self, 97 self,
100 self.tr("Unsaved Changes"), 98 self.tr("Unsaved Changes"),
101 self.tr("""The guards list has been changed.""" 99 self.tr("""The guards list has been changed."""
102 """ Shall the changes be applied?"""), 100 """ Shall the changes be applied?"""),
103 E5MessageBox.StandardButtons( 101 E5MessageBox.Apply | E5MessageBox.Discard,
104 E5MessageBox.Apply |
105 E5MessageBox.Discard),
106 E5MessageBox.Apply) 102 E5MessageBox.Apply)
107 if res == E5MessageBox.Apply: 103 if res == E5MessageBox.Apply:
108 self.__applyGuards() 104 self.__applyGuards()
109 else: 105 else:
110 self.__dirtyList = False 106 self.__dirtyList = False

eric ide

mercurial