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