src/configDialog.cpp

changeset 431
ec1e2059319b
parent 430
8458cf2719d1
child 452
47cc663e4ff4
--- a/src/configDialog.cpp	Sat Aug 03 00:56:02 2013 +0300
+++ b/src/configDialog.cpp	Sat Aug 03 02:18:41 2013 +0300
@@ -47,6 +47,8 @@
 extern_cfg (bool, gl_blackedges);
 extern_cfg (bool, gui_implicitfiles);
 extern_cfg (str, net_downloadpath);
+extern_cfg (bool, net_guesspaths);
+extern_cfg (bool, net_autoclose);
 
 extern_cfg (str, prog_ytruder);
 extern_cfg (str, prog_rectifier);
@@ -78,6 +80,8 @@
 	initExtProgTab();
 	
 	ui->downloadPath->setText (net_downloadpath);
+	ui->guessNetPaths->setChecked (net_guesspaths);
+	ui->autoCloseNetPrompt->setChecked (net_autoclose);
 	connect (ui->findDownloadPath, SIGNAL (clicked(bool)), this, SLOT (slot_findDownloadFolder()));
 }
 
@@ -578,8 +582,10 @@
 		gl_maincolor_alpha = ((double) dlg.getUI()->mainColorAlpha->value()) / 10.0f;
 		gl_linethickness = dlg.getUI()->lineThickness->value();
 		gui_implicitfiles = dlg.getUI()->implicitFiles->isChecked();
+		net_downloadpath = dlg.getUI()->downloadPath->text();
+		net_guesspaths = dlg.getUI()->guessNetPaths->isChecked();
+		net_autoclose = dlg.getUI()->autoCloseNetPrompt->isChecked();
 		
-		net_downloadpath = dlg.getUI()->downloadPath->text();
 		if (net_downloadpath.value.right (1) != DIRSLASH)
 			net_downloadpath += DIRSLASH;
 		

mercurial