cfgdir needs a default value to avoid writing stubs to current path 1.0.0
authornemo
Mon, 24 Oct 2022 10:06:52 -0400
branch1.0.0
changeset 15885 ed84eb580643
parent 15874 fac577eb8756
child 15886 5e8d2a8eb473
child 15907 1becf4a0e907
cfgdir needs a default value to avoid writing stubs to current path
QTfrontend/main.cpp
--- a/QTfrontend/main.cpp	Wed Sep 21 06:55:31 2022 +0300
+++ b/QTfrontend/main.cpp	Mon Oct 24 10:06:52 2022 -0400
@@ -186,6 +186,7 @@
 }
 
 int main(int argc, char *argv[]) {
+    cfgdir->setPath(QDir::homePath());
 
     // Since we're calling this first, closeResources() will be the last thing called after main() returns.
     atexit(closeResources);
@@ -278,7 +279,6 @@
         }
         else
         {
-            cfgdir->setPath(QDir::homePath());
             custom_config = false;
         }