IconEditor/IconEditorWindow.py

changeset 2957
c7f8c7561542
parent 2807
73c38615aced
child 2992
dbdf27746da5
equal deleted inserted replaced
2956:615dbd8a696a 2957:c7f8c7561542
990 self.__checkActions() 990 self.__checkActions()
991 991
992 def __saveIcon(self): 992 def __saveIcon(self):
993 """ 993 """
994 Private slot to save the icon. 994 Private slot to save the icon.
995
996 @return flag indicating success (boolean)
995 """ 997 """
996 if not self.__fileName: 998 if not self.__fileName:
997 return self.__saveIconAs() 999 return self.__saveIconAs()
998 else: 1000 else:
999 return self.__saveIconFile(self.__fileName) 1001 return self.__saveIconFile(self.__fileName)
1000 1002
1001 def __saveIconAs(self): 1003 def __saveIconAs(self):
1002 """ 1004 """
1003 Private slot to save the icon with a new name. 1005 Private slot to save the icon with a new name.
1006
1007 @return flag indicating success (boolean)
1004 """ 1008 """
1005 if not self.__lastSavePath: 1009 if not self.__lastSavePath:
1006 if self.__project and self.__project.isOpen(): 1010 if self.__project and self.__project.isOpen():
1007 self.__lastSavePath = self.__project.getProjectPath() 1011 self.__lastSavePath = self.__project.getProjectPath()
1008 if not self.__lastSavePath and self.__lastOpenPath: 1012 if not self.__lastSavePath and self.__lastOpenPath:

eric ide

mercurial