src/partDownloader.cc

changeset 850
a3d72b0e916d
parent 844
11587d419d2f
child 852
cbd89b33f70d
--- a/src/partDownloader.cc	Sun Jul 27 02:55:27 2014 +0300
+++ b/src/partDownloader.cc	Sun Jul 27 03:14:27 2014 +0300
@@ -30,9 +30,9 @@
 #include "glRenderer.h"
 #include "configDialog.h"
 
-CFGENTRY (String,	downloadFilePath,	"");
-CFGENTRY (Bool,		guessDownloadPaths,	true);
-CFGENTRY (Bool,		autoCloseDownloadDialog,		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 = cfg::downloadFilePath;
+	QString path = cfg::DownloadFilePath;
 
 	if (DIRSLASH[0] != '/')
 		path.replace (DIRSLASH, "/");
@@ -123,7 +123,7 @@
 	dest = dest.simplified();
 
 	// If the user doesn't want us to guess, stop right here.
-	if (not cfg::guessDownloadPaths)
+	if (not cfg::GuessDownloadPaths)
 		return;
 
 	// Ensure .dat extension
@@ -289,7 +289,7 @@
 		g_win->R()->resetAngles();
 	}
 
-	if (cfg::autoCloseDownloadDialog and not failed)
+	if (cfg::AutoCloseDownloadDialog and not failed)
 	{
 		// Close automatically if desired.
 		accept();

mercurial