aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop
diff options
context:
space:
mode:
Diffstat (limited to 'qmidiplayer-desktop')
-rw-r--r--qmidiplayer-desktop/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/qmidiplayer-desktop/main.cpp b/qmidiplayer-desktop/main.cpp
index 37f6338..b1c9149 100644
--- a/qmidiplayer-desktop/main.cpp
+++ b/qmidiplayer-desktop/main.cpp
@@ -22,11 +22,16 @@
#include <QLibraryInfo>
#include <QCommandLineParser>
#ifdef _WIN32
+#include <cstdio>
#include <windows.h>
#endif
int main(int argc,char **argv)
{
+#ifdef _WIN32
+ if(!LoadLibraryA("libbacktrace.dll"))
+ fputs("Failed to load backtrace library. Stack trace will not be printed if unhandled exception occurs.\n",stderr);
+#endif
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
QCoreApplication::setApplicationName("qmidiplayer");
QCoreApplication::setApplicationVersion(APP_VERSION);