Merge pull request #1701 from curlymorphic/i710

Proposed fix 710
This commit is contained in:
Tres Finocchiaro
2015-01-27 11:53:54 -05:00

View File

@@ -72,7 +72,7 @@ VersionedSaveDialog::VersionedSaveDialog( QWidget *parent,
bool VersionedSaveDialog::changeFileNameVersion(QString &fileName, bool increment )
{
static QRegExp regexp( "-\\d+(\\.\\w+)?$" );
static QRegExp regexp( "[- ]\\d+(\\.\\w+)?$" );
int idx = regexp.indexIn( fileName );
// For file names without extension (no ".mmpz")