Fixed issue with profile not closed after change GTA folder

This commit is contained in:
Syping 2018-02-25 14:13:35 +01:00
parent 9272f0d3c1
commit 7662b374e5
3 changed files with 9 additions and 5 deletions

View file

@ -602,6 +602,10 @@ void UserInterface::on_actionSelect_GTA_Folder_triggered()
QString GTAV_Folder_Temp = QFileDialog::getExistingDirectory(this, tr("Select GTA V Folder..."), StandardPaths::documentsLocation(), QFileDialog::ShowDirsOnly);
if (QFileInfo(GTAV_Folder_Temp).exists())
{
if (profileOpen)
{
closeProfile_p();
}
GTAV_Folder = GTAV_Folder_Temp;
QDir::setCurrent(GTAV_Folder);
AppEnv::setGameFolder(GTAV_Folder);

View file

@ -49,7 +49,7 @@
#endif
#ifndef GTA5SYNC_APPVER
#define GTA5SYNC_APPVER "1.5.1"
#define GTA5SYNC_APPVER "1.5.2"
#endif
#ifdef GTA5SYNC_BUILDTYPE_REL

View file

@ -7,8 +7,8 @@ CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "gta5view.exe.manifest"
#include <windows.h>
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1, 5, 1, 0
PRODUCTVERSION 1, 5, 1, 0
FILEVERSION 1, 5, 2, 0
PRODUCTVERSION 1, 5, 2, 0
FILEFLAGSMASK 0x3fL
FILEFLAGS 0
FILEOS VOS_NT_WINDOWS32
@ -25,12 +25,12 @@ BEGIN
BEGIN
VALUE "CompanyName", "Syping"
VALUE "FileDescription", "gta5view"
VALUE "FileVersion", "1.5.1"
VALUE "FileVersion", "1.5.2"
VALUE "InternalName", "gta5view"
VALUE "LegalCopyright", "Copyright © 2016-2018 Syping"
VALUE "OriginalFilename", "gta5view.exe"
VALUE "ProductName", "gta5view"
VALUE "ProductVersion", "1.5.1"
VALUE "ProductVersion", "1.5.2"
END
END
END