598 if not ext: |
598 if not ext: |
599 ex = selectedFilter.split("(*")[1].split(")")[0] |
599 ex = selectedFilter.split("(*")[1].split(")")[0] |
600 if ex: |
600 if ex: |
601 fn += ex |
601 fn += ex |
602 if QFileInfo(fn).exists(): |
602 if QFileInfo(fn).exists(): |
603 res = QMessageBox.warning(None, |
603 res = E5MessageBox.warning(self.parent(), |
604 self.trUtf8("Save File"), |
604 self.trUtf8("Save File"), |
605 self.trUtf8("""<p>The file <b>{0}</b> already exists.</p>""") |
605 self.trUtf8("""<p>The file <b>{0}</b> already exists.</p>""") |
606 .format(fn), |
606 .format(fn), |
607 QMessageBox.StandardButtons(\ |
607 QMessageBox.StandardButtons(\ |
608 QMessageBox.Abort | \ |
608 QMessageBox.Abort | \ |
625 Public method to check the dirty status and open a message window. |
625 Public method to check the dirty status and open a message window. |
626 |
626 |
627 @return flag indicating whether this operation was successful (boolean) |
627 @return flag indicating whether this operation was successful (boolean) |
628 """ |
628 """ |
629 if self.isDirty(): |
629 if self.isDirty(): |
630 res = QMessageBox.warning(self.parent(), |
630 res = E5MessageBox.warning(self.parent(), |
631 self.trUtf8("Close Multiproject"), |
631 self.trUtf8("Close Multiproject"), |
632 self.trUtf8("The current multiproject has unsaved changes."), |
632 self.trUtf8("The current multiproject has unsaved changes."), |
633 QMessageBox.StandardButtons(\ |
633 QMessageBox.StandardButtons(\ |
634 QMessageBox.Abort | \ |
634 QMessageBox.Abort | \ |
635 QMessageBox.Discard | \ |
635 QMessageBox.Discard | \ |