clear the rows of the version editor properly when clearing versions; don't save the config when closing the version editor since then changes will apply even if user presses cancel in the main config box

Sun, 08 Sep 2013 21:57:23 +0300

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Sun, 08 Sep 2013 21:57:23 +0300
changeset 27
b9307871cf10
parent 26
9aab482c9125
child 28
dc076175ebdc

clear the rows of the version editor properly when clearing versions; don't save the config when closing the version editor since then changes will apply even if user presses cancel in the main config box

src/versionEditor.cpp file | annotate | diff | comparison | revisions
--- a/src/versionEditor.cpp	Sun Sep 08 21:02:10 2013 +0300
+++ b/src/versionEditor.cpp	Sun Sep 08 21:57:23 2013 +0300
@@ -95,7 +95,8 @@
 	if (!confirm (tr ("Really remove all versions?")))
 		return;
 	
-	m_ui->m_versions->clear();
+	for (int i = m_ui->m_versions->rowCount() - 1; i >= 0; --i)
+		m_ui->m_versions->removeRow (i);
 }
 
 // =============================================================================
@@ -137,8 +138,6 @@
 		
 		cfg::binaryPaths[name] = path;
 	}
-	
-	cfg::save();
 }
 
 // =============================================================================

mercurial