# # # patch "src/main.cpp" # from [3721ba7f6006b1b3128beb139fb100fb52166c5d] # to [088acebe37554f78724478bb7d698b0b59ab32dd] # # patch "src/util/Platform.cpp" # from [2c86bf985ac1f54de537bed0321530d9e55c83c0] # to [6c034a340f5fb9adf6a7e46e4210b89b3da14e56] # ============================================================ --- src/main.cpp 3721ba7f6006b1b3128beb139fb100fb52166c5d +++ src/main.cpp 088acebe37554f78724478bb7d698b0b59ab32dd @@ -22,6 +22,7 @@ #endif #include "DebugLog.h" +#include "Platform.h" #include "GuitoneCore.h" #include "GuitoneStandalone.h" #include "GuitoneDriver.h" @@ -54,6 +55,8 @@ int main(int argc, char** argv) // install our own message handler to catch debug messages, warnings, etc. qInstallMsgHandler(guitoneMsgHandler); + Platform::setupCrashHandler(); + QString locale = QLocale::system().name(); // load the default Qt translations ============================================================ --- src/util/Platform.cpp 2c86bf985ac1f54de537bed0321530d9e55c83c0 +++ src/util/Platform.cpp 6c034a340f5fb9adf6a7e46e4210b89b3da14e56 @@ -81,7 +81,8 @@ bool Platform::openFile(const QString & Settings::getString("AskFileOpenExt", ASK_OPEN_FILE_EXT) .split(",", QString::SkipEmptyParts); - if (fileInfo.isExecutable() || harmfulSuffixes.contains(suffix)) + if (!fileInfo.isDir() && + (fileInfo.isExecutable() || harmfulSuffixes.contains(suffix))) { QMessageBox::StandardButton btn = QMessageBox::question( NULL,