summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp
index e56197c9..bfd23103 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -562,10 +562,8 @@ int runApplication(
}
log::debug("initializing tutorials");
- TutorialManager::init(
- qApp->applicationDirPath() + "/"
- + QString::fromStdWString(AppConfig::tutorialsPath()) + "/",
- &organizer);
+ QString tutorialsPath = QCoreApplication::applicationDirPath() + "/resources/tutorials/";
+ TutorialManager::init(tutorialsPath, &organizer);
if (!application.setStyleFile(settings.interface().styleName().value_or(""))) {
// disable invalid stylesheet
@@ -710,7 +708,8 @@ int main(int argc, char *argv[])
TimeThis tt("main() to doOneRun()");
- SetThisThreadName("main");
+ env::prependToPath(QDir::toNativeSeparators(
+ QCoreApplication::applicationDirPath() + "/dlls"));
initLogging();
auto application = MOApplication::create(argc, argv);