1118 if fpath.exists(): |
1118 if fpath.exists(): |
1119 res = EricMessageBox.yesNo( |
1119 res = EricMessageBox.yesNo( |
1120 self, |
1120 self, |
1121 self.tr("Save icon file"), |
1121 self.tr("Save icon file"), |
1122 self.tr("<p>The file <b>{0}</b> already exists." |
1122 self.tr("<p>The file <b>{0}</b> already exists." |
1123 " Overwrite it?</p>").format(str(fpath)), |
1123 " Overwrite it?</p>").format(fpath), |
1124 icon=EricMessageBox.Warning) |
1124 icon=EricMessageBox.Warning) |
1125 if not res: |
1125 if not res: |
1126 return False |
1126 return False |
1127 |
1127 |
1128 self.__lastSavePath = fpath.parent |
1128 self.__lastSavePath = str(fpath.parent) |
1129 |
1129 |
1130 return self.__saveIconFile(str(fpath)) |
1130 return self.__saveIconFile(str(fpath)) |
1131 |
1131 |
1132 def __closeAll(self): |
1132 def __closeAll(self): |
1133 """ |
1133 """ |