From de109d0840b98885582a2c2a4bf8a918ac6a1f4b Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Sun, 2 Dec 2018 02:57:03 -0500 Subject: [PATCH] tiny fixes --- GUI/main.cpp | 2 +- GUI/mainwindow.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/GUI/main.cpp b/GUI/main.cpp index ef6bb7c..96eddb5 100644 --- a/GUI/main.cpp +++ b/GUI/main.cpp @@ -52,7 +52,7 @@ int main(int argc, char *argv[]) AddVectoredExceptionHandler(FALSE, ExceptionLogger); SetUnhandledExceptionFilter([](auto) -> LONG { Terminate(); }); - QDir::setCurrent(QFileInfo().absolutePath()); + QDir::setCurrent(QFileInfo(QString::fromStdWString(Util::GetModuleFileName().value())).absolutePath()); QApplication a(argc, argv); MainWindow w; diff --git a/GUI/mainwindow.cpp b/GUI/mainwindow.cpp index a3449cb..9c4fbaf 100644 --- a/GUI/mainwindow.cpp +++ b/GUI/mainwindow.cpp @@ -5,7 +5,6 @@ #include "setdialog.h" #include "misc.h" #include "host/util.h" -#include #include MainWindow::MainWindow(QWidget *parent) :