From a106b483da21c29d726b625d0a93d9afab8b5be6 Mon Sep 17 00:00:00 2001 From: scatterflower Date: Thu, 27 Aug 2020 20:50:27 -0500 Subject: [PATCH] quick fix for linux thing --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index a72c00f..c21be04 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -40,9 +40,9 @@ int main(int argc, char* argv[]) #ifdef __linux__ // We have to do this before the QApplication is instantiated // As a result, we can't use QCommandLineParser - for(int i; i < argc; i++) { + for(int i = 0; i < argc; i++) { if(strcmp("-l", argv[i]) == 0 || strcmp("--headless", argv[i]) == 0){ - setenv("QT_QPA_PLATFORM", "minimal"); + setenv("QT_QPA_PLATFORM", "minimal", 1); } } #endif