src/versionEditor.cpp

changeset 28
dc076175ebdc
parent 27
b9307871cf10
child 30
6b82f6a3ad53
equal deleted inserted replaced
27:b9307871cf10 28:dc076175ebdc
81 // ----------------------------------------------------------------------------- 81 // -----------------------------------------------------------------------------
82 void VersionEditor::remove() { 82 void VersionEditor::remove() {
83 QTableWidget* const vers = m_ui->m_versions; 83 QTableWidget* const vers = m_ui->m_versions;
84 84
85 str name = vers->item (vers->currentRow(), NameColumn)->text(); 85 str name = vers->item (vers->currentRow(), NameColumn)->text();
86 if (!confirm (fmt (tr ("Really remove version %1?"), name)))
87 return;
88
89 vers->removeRow (vers->currentRow()); 86 vers->removeRow (vers->currentRow());
90 } 87 }
91 88
92 // ============================================================================= 89 // =============================================================================
93 // ----------------------------------------------------------------------------- 90 // -----------------------------------------------------------------------------

mercurial