From 1bc4aead2307a007016731a2585b2b55db0394e1 Mon Sep 17 00:00:00 2001 From: Rafael Date: Wed, 14 Dec 2016 05:47:05 +0100 Subject: [PATCH] Hotfix for hidden + backup combo problem --- SnapmaticEditor.cpp | 4 ++-- config.h | 2 +- res/app.rc | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/SnapmaticEditor.cpp b/SnapmaticEditor.cpp index 095c200..a959ccb 100644 --- a/SnapmaticEditor.cpp +++ b/SnapmaticEditor.cpp @@ -191,17 +191,17 @@ void SnapmaticEditor::on_cmdApply_clicked() { QString originalFileName = smpic->getPictureFileName(); QString adjustedFileName = originalFileName; - QString backupFileName = originalFileName + ".bak"; if (adjustedFileName.right(7) == ".hidden") // for the hidden file system { adjustedFileName.remove(adjustedFileName.length() - 7, 7); } + QString backupFileName = adjustedFileName + ".bak"; if (!QFile::exists(backupFileName)) { QFile::copy(adjustedFileName, backupFileName); } smpic->setSnapmaticProperties(localSpJson); - if (!smpic->exportPicture(adjustedFileName)) + if (!smpic->exportPicture(originalFileName)) { QMessageBox::warning(this, tr("Snapmatic Properties"), tr("Patching of Snapmatic Properties failed because of I/O Error")); } diff --git a/config.h b/config.h index b39852d..a9f638f 100755 --- a/config.h +++ b/config.h @@ -30,7 +30,7 @@ #ifndef GTA5SYNC_APPVER #ifndef GTA5SYNC_DAILYB -#define GTA5SYNC_APPVER "1.1.0" +#define GTA5SYNC_APPVER "1.1.1" #else #define GTA5SYNC_APPVER QString("%1").arg(GTA5SYNC_DAILYB) #endif diff --git a/res/app.rc b/res/app.rc index 8225327..2d8ac5b 100755 --- a/res/app.rc +++ b/res/app.rc @@ -3,8 +3,8 @@ IDI_ICON1 ICON DISCARDABLE "5sync.ico" #include VS_VERSION_INFO VERSIONINFO -FILEVERSION 1, 1, 0, 0 -PRODUCTVERSION 1, 1, 0, 0 +FILEVERSION 1, 1, 1, 0 +PRODUCTVERSION 1, 1, 1, 0 FILEFLAGSMASK 0x3fL FILEFLAGS 0 FILEOS VOS_NT_WINDOWS32 @@ -21,12 +21,12 @@ BEGIN BEGIN VALUE "CompanyName", "Syping" VALUE "FileDescription", "gta5view\0" - VALUE "FileVersion", "1.1.0.0\0" + VALUE "FileVersion", "1.1.1\0" VALUE "InternalName", "gta5view\0" VALUE "LegalCopyright", "Copyright © 2016 Syping\0" VALUE "OriginalFilename", "gta5view.exe\0" VALUE "ProductName", "gta5view\0" - VALUE "ProductVersion", "1.1.0.0\0" + VALUE "ProductVersion", "1.1.1\0" END END END