Added a quick fix for the freeze of RetroShare when using a file dialog on Windows.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5492 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2012-08-31 13:53:54 +00:00
parent ca1055da90
commit 1723bc1cde

View File

@ -89,6 +89,11 @@ static void displayWarningAboutDSAKeys()
int main(int argc, char *argv[])
{
#ifdef WINDOWS_SYS
// The current directory of the application is changed when using the native dialog on Windows
// This is a quick fix until libretroshare is using a absolute path in the portable Version
extern bool Q_GUI_EXPORT qt_use_native_dialogs;
qt_use_native_dialogs = false;
{
/* Set the current directory to the application dir,
because the start dir with autostart from the registry run key is not the exe dir */