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 |