eric7/IconEditor/IconEditorWindow.py

branch
eric7
changeset 9153
506e35e424d5
parent 9152
8a68afaf1ba2
child 9162
8b75b1668583
equal deleted inserted replaced
9152:8a68afaf1ba2 9153:506e35e424d5
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 """

eric ide

mercurial