src/versionEditor.cpp

changeset 27
b9307871cf10
parent 25
256bb5c6b77f
child 28
dc076175ebdc
equal deleted inserted replaced
26:9aab482c9125 27:b9307871cf10
93 // ----------------------------------------------------------------------------- 93 // -----------------------------------------------------------------------------
94 void VersionEditor::clear() { 94 void VersionEditor::clear() {
95 if (!confirm (tr ("Really remove all versions?"))) 95 if (!confirm (tr ("Really remove all versions?")))
96 return; 96 return;
97 97
98 m_ui->m_versions->clear(); 98 for (int i = m_ui->m_versions->rowCount() - 1; i >= 0; --i)
99 m_ui->m_versions->removeRow (i);
99 } 100 }
100 101
101 // ============================================================================= 102 // =============================================================================
102 // ----------------------------------------------------------------------------- 103 // -----------------------------------------------------------------------------
103 void VersionEditor::addVersion (str name, str path, bool isRelease) { 104 void VersionEditor::addVersion (str name, str path, bool isRelease) {
135 else 136 else
136 cfg::devBuildNames << QVariant (name); 137 cfg::devBuildNames << QVariant (name);
137 138
138 cfg::binaryPaths[name] = path; 139 cfg::binaryPaths[name] = path;
139 } 140 }
140
141 cfg::save();
142 } 141 }
143 142
144 // ============================================================================= 143 // =============================================================================
145 // ----------------------------------------------------------------------------- 144 // -----------------------------------------------------------------------------
146 void VersionEditor::selectionChanged (int row) { 145 void VersionEditor::selectionChanged (int row) {

mercurial