From 3d56e17dd8f8be6a0089600360f42c9bb3eb7c02 Mon Sep 17 00:00:00 2001 From: LostDragonist Date: Sat, 23 Mar 2019 23:02:12 -0500 Subject: Make sure the configured temp folder exists --- src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 6d717db5..629b89f9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -645,6 +645,11 @@ int runApplication(MOApplication &application, SingleInstance &instance, int main(int argc, char *argv[]) { + //Make sure the configured temp folder exists + QDir tempDir = QDir::temp(); + if (!tempDir.exists()) + tempDir.root().mkpath(tempDir.canonicalPath()); + //Should allow for better scaling of ui with higher resolution displays QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); -- cgit v1.3.1