Fixed: Browse buttons were freezing the application, see #279

This commit is contained in:
kervala 2016-09-14 08:15:31 +02:00
parent 9e265aac03
commit 2450c57e8c

View file

@ -86,6 +86,11 @@ int main(int argc, char *argv[])
_CrtSetDbgFlag (_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
#endif
#ifdef Q_OS_WIN
// to fix the bug with QFileDialog::getExistingDirectory hanging under Windows
CoInitialize(NULL);
#endif
NLMISC::CApplicationContext appContext;
QApplication app(argc, argv);