999 if not ext: |
999 if not ext: |
1000 ex = selectedFilter.split("(*")[1].split(")")[0] |
1000 ex = selectedFilter.split("(*")[1].split(")")[0] |
1001 if ex: |
1001 if ex: |
1002 fileName += ex |
1002 fileName += ex |
1003 if QFileInfo(fileName).exists(): |
1003 if QFileInfo(fileName).exists(): |
1004 res = E5MessageBox.warning(self, |
1004 res = E5MessageBox.yesNo(self, |
1005 self.trUtf8("Save icon file"), |
1005 self.trUtf8("Save icon file"), |
1006 self.trUtf8("<p>The file <b>{0}</b> already exists.</p>") |
1006 self.trUtf8("<p>The file <b>{0}</b> already exists." |
1007 .format(fileName), |
1007 " Overwrite it?</p>").format(fileName), |
1008 QMessageBox.StandardButtons(\ |
1008 type_ = E5MessageBox.Warning) |
1009 QMessageBox.Abort | \ |
1009 if not res: |
1010 QMessageBox.Save), |
|
1011 QMessageBox.Abort) |
|
1012 if res == QMessageBox.Abort or res == QMessageBox.Cancel: |
|
1013 return False |
1010 return False |
1014 |
1011 |
1015 return self.__saveIconFile(fileName) |
1012 return self.__saveIconFile(fileName) |
1016 |
1013 |
1017 def __closeAll(self): |
1014 def __closeAll(self): |