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 // ----------------------------------------------------------------------------- |