--- a/Snapshot/SnapWidget.py Fri Nov 01 15:48:48 2013 +0100 +++ b/Snapshot/SnapWidget.py Sun Nov 03 15:58:22 2013 +0100 @@ -233,8 +233,8 @@ if not file.open(QFile.WriteOnly): E5MessageBox.warning( self, self.trUtf8("Save Snapshot"), - self.trUtf8("Cannot write file '{0}:\n{1}.")\ - .format(fileName, file.errorString())) + self.trUtf8("Cannot write file '{0}:\n{1}.") + .format(fileName, file.errorString())) return False ok = self.__snapshot.save(file) @@ -243,8 +243,8 @@ if not ok: E5MessageBox.warning( self, self.trUtf8("Save Snapshot"), - self.trUtf8("Cannot write file '{0}:\n{1}.")\ - .format(fileName, file.errorString())) + self.trUtf8("Cannot write file '{0}:\n{1}.") + .format(fileName, file.errorString())) return ok @@ -256,7 +256,7 @@ name = os.path.basename(self.__filename) # If the name contains a number, then increment it. - numSearch = QRegExp("(^|[^\\d])(\\d+)") + numSearch = QRegExp("(^|[^\\d])(\\d+)") # We want to match as far left as possible, and when the number is # at the start of the name. @@ -487,8 +487,8 @@ self.trUtf8( """The application contains an unsaved snapshot."""), E5MessageBox.StandardButtons( - E5MessageBox.Abort | \ - E5MessageBox.Discard | \ + E5MessageBox.Abort | + E5MessageBox.Discard | E5MessageBox.Save)) if res == E5MessageBox.Abort: evt.ignore()