diff options
| author | LostDragonist <lost.dragonist@gmail.com> | 2019-03-23 23:02:12 -0500 |
|---|---|---|
| committer | LostDragonist <lost.dragonist@gmail.com> | 2019-03-23 23:02:12 -0500 |
| commit | 3d56e17dd8f8be6a0089600360f42c9bb3eb7c02 (patch) | |
| tree | 7fd6acd2b6727a132456c86f967234e73fe52138 /src/main.cpp | |
| parent | 1f3133059e3c821e92dbaa6e3149dd59ce86c245 (diff) | |
Make sure the configured temp folder exists
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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); |
