--- a/Snapshot/SnapWidget.py Sat Oct 19 12:28:12 2013 +0200 +++ b/Snapshot/SnapWidget.py Sat Oct 19 13:03:39 2013 +0200 @@ -231,7 +231,7 @@ if not file.open(QFile.WriteOnly): E5MessageBox.warning( self, self.trUtf8("Save Snapshot"), - self.trUtf8("Cannot write file '{0}:\n{1}.")\ + self.trUtf8("Cannot write file '{0}:\n{1}.") .format(fileName, file.errorString())) return False @@ -241,7 +241,7 @@ if not ok: E5MessageBox.warning( self, self.trUtf8("Save Snapshot"), - self.trUtf8("Cannot write file '{0}:\n{1}.")\ + self.trUtf8("Cannot write file '{0}:\n{1}.") .format(fileName, file.errorString())) return ok @@ -254,7 +254,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. @@ -485,8 +485,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()