Alpha 1.0.17: crash fix in file open.

ShellExecute() call reenters Qt event loop, so each time we
schedule a delayed action (like destroying FileLoader) and after
that we call ShellExecute (in psOpenFile) we destroy it inside
this call and can't use it after.

So now we perform ShellExecute calls only delayed (using task queue).
This commit is contained in:
John Preston
2017-02-28 11:14:12 +03:00
parent a5eb5a6ea2
commit ae08a2f697
7 changed files with 43 additions and 32 deletions
+4 -4
View File
@@ -34,8 +34,8 @@ IDI_ICON1 ICON "..\\art\\icon256.ico"
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,16,0
PRODUCTVERSION 1,0,16,0
FILEVERSION 1,0,17,0
PRODUCTVERSION 1,0,17,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
@@ -52,10 +52,10 @@ BEGIN
BEGIN
VALUE "CompanyName", "Telegram Messenger LLP"
VALUE "FileDescription", "Telegram Desktop"
VALUE "FileVersion", "1.0.16.0"
VALUE "FileVersion", "1.0.17.0"
VALUE "LegalCopyright", "Copyright (C) 2014-2017"
VALUE "ProductName", "Telegram Desktop"
VALUE "ProductVersion", "1.0.16.0"
VALUE "ProductVersion", "1.0.17.0"
END
END
BLOCK "VarFileInfo"