src/dialogs.cpp

changeset 436
4268a5507725
parent 431
ec1e2059319b
child 452
47cc663e4ff4
--- a/src/dialogs.cpp	Sat Aug 03 12:31:36 2013 +0300
+++ b/src/dialogs.cpp	Tue Aug 06 13:32:07 2013 +0300
@@ -150,6 +150,7 @@
 	connect (ui->path, SIGNAL (textEdited (QString)), this, SLOT (slot_tryConfigure()));
 	connect (ui->searchButton, SIGNAL (clicked()), this, SLOT (slot_findPath()));
 	connect (ui->buttonBox, SIGNAL (rejected()), this, validDefault ? SLOT (reject()) : SLOT (slot_exit()));
+	connect (ui->buttonBox, SIGNAL (accepted()), this, SLOT (slot_accept()));
 	
 	setPath (io_ldpath);
 	
@@ -201,6 +202,11 @@
 	okButton()->setEnabled (true);
 }
 
+void LDrawPathDialog::slot_accept() {
+	config::save();
+	accept();
+}
+
 // =============================================================================
 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 // =============================================================================

mercurial