63 ok = ( |
63 ok = ( |
64 True |
64 True |
65 if self.textMimeTypesList.isListEmpty() |
65 if self.textMimeTypesList.isListEmpty() |
66 else EricMessageBox.yesNo( |
66 else EricMessageBox.yesNo( |
67 self, |
67 self, |
68 self.tr("Reset Mime Types"), |
68 self.tr("Set Mime Types To Default"), |
69 self.tr( |
69 self.tr( |
70 """Do you really want to reset the configured list of""" |
70 """Do you really want to set the configured list of""" |
71 """ mime types?""" |
71 """ mime types to the default value?""" |
72 ), |
72 ), |
73 ) |
73 ) |
74 ) |
74 ) |
75 |
75 |
76 if ok: |
76 if ok: |
86 ok = ( |
86 ok = ( |
87 True |
87 True |
88 if self.textFilePatternsList.isListEmpty() |
88 if self.textFilePatternsList.isListEmpty() |
89 else EricMessageBox.yesNo( |
89 else EricMessageBox.yesNo( |
90 self, |
90 self, |
91 self.tr("Reset File Patterns"), |
91 self.tr("Set File Patterns To Default"), |
92 self.tr( |
92 self.tr( |
93 """Do you really want to reset the configured list of""" |
93 """Do you really want to set the configured list of""" |
94 """ text file patterns?""" |
94 """ text file patterns to the default value?""" |
95 ), |
95 ), |
96 ) |
96 ) |
97 ) |
97 ) |
98 |
98 |
99 if ok: |
99 if ok: |