src/ldObject.cpp

changeset 970
c8aae45afd85
parent 968
4b93b7963456
child 971
c00f9665a9f8
--- a/src/ldObject.cpp	Sun Aug 30 17:20:55 2015 +0300
+++ b/src/ldObject.cpp	Mon Aug 31 04:57:16 2015 +0300
@@ -27,9 +27,9 @@
 #include "colors.h"
 #include "glCompiler.h"
 
-CFGENTRY (String, DefaultName, "")
-CFGENTRY (String, DefaultUser, "")
-CFGENTRY (Bool, UseCALicense, true)
+ConfigOption (QString DefaultName = "")
+ConfigOption (QString DefaultUser = "")
+ConfigOption (bool UseCaLicense = true)
 
 // List of all LDObjects
 QMap<int32, LDObject*> g_allObjects;
@@ -859,7 +859,7 @@
 //
 QString PreferredLicenseText()
 {
-	return (cfg::UseCALicense ? CALicenseText : "");
+	return (g_win->configBag()->useCaLicense ? CALicenseText : "");
 }
 
 // =============================================================================

mercurial