216 """<p>Speed Dial data could not be saved to""" |
216 """<p>Speed Dial data could not be saved to""" |
217 """ <b>{0}</b></p>""").format(speedDialFile)) |
217 """ <b>{0}</b></p>""").format(speedDialFile)) |
218 else: |
218 else: |
219 self.speedDialSaved.emit() |
219 self.speedDialSaved.emit() |
220 |
220 |
|
221 def resetDials(self): |
|
222 """ |
|
223 Public method to reset the speed dials to the default values. |
|
224 """ |
|
225 ok = E5MessageBox.yesNo( |
|
226 None, |
|
227 self.tr("Reset Speed Dials"), |
|
228 self.tr("""Are you sure you want to reset the speed dials to""" |
|
229 """ the default pages?""")) |
|
230 if ok: |
|
231 speedDialFile = self.getFileName() |
|
232 if os.path.exists(speedDialFile): |
|
233 os.remove(speedDialFile) |
|
234 self.__regenerateScript = True |
|
235 |
|
236 self.__load() |
|
237 |
221 def close(self): |
238 def close(self): |
222 """ |
239 """ |
223 Public method to close the user agents manager. |
240 Public method to close the user agents manager. |
224 """ |
241 """ |
225 self.__saveTimer.saveIfNeccessary() |
242 self.__saveTimer.saveIfNeccessary() |