# HG changeset patch # User Teemu Piippo # Date 1378666643 -10800 # Node ID b9307871cf100b6ee5131d233127b9894ff54739 # Parent 9aab482c912560186ad1aa71119675704927a3a0 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 diff -r 9aab482c9125 -r b9307871cf10 src/versionEditor.cpp --- 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(); } // =============================================================================