src/partDownloader.cc

changeset 757
8ab9fa53142b
parent 717
fdc285e5952f
child 768
29e6c5552388
--- a/src/partDownloader.cc	Tue Apr 29 00:15:56 2014 +0300
+++ b/src/partDownloader.cc	Tue Apr 29 02:06:09 2014 +0300
@@ -30,9 +30,9 @@
 #include "glRenderer.h"
 #include "configDialog.h"
 
-cfg (String,	net_downloadpath,	"");
-cfg (Bool,		net_guesspaths,	true);
-cfg (Bool,		net_autoclose,		true);
+CFGENTRY (String,	downloadFilePath,	"");
+CFGENTRY (Bool,		guessDownloadPaths,	true);
+CFGENTRY (Bool,		autoCloseDownloadDialog,		true);
 
 const QString g_unofficialLibraryURL ("http://ldraw.org/library/unofficial/");
 
@@ -59,7 +59,7 @@
 //
 QString PartDownloader::getDownloadPath()
 {
-	QString path = net_downloadpath;
+	QString path = cfg::downloadFilePath;
 
 #if DIRSLASH_CHAR != '/'
 	path.replace (DIRSLASH, "/");
@@ -123,7 +123,7 @@
 	dest = dest.simplified();
 
 	// If the user doesn't want us to guess, stop right here.
-	if (not net_guesspaths)
+	if (not cfg::guessDownloadPaths)
 		return;
 
 	// Ensure .dat extension
@@ -288,7 +288,7 @@
 		g_win->R()->resetAngles();
 	}
 
-	if (net_autoclose && not failed)
+	if (cfg::autoCloseDownloadDialog && not failed)
 	{
 		// Close automatically if desired.
 		accept();

mercurial