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: |