mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-23 07:36:16 +00:00
Ask for confirmation before deleting a row.
This commit is contained in:
parent
39c43b03a8
commit
b0c916276d
1 changed files with 8 additions and 0 deletions
|
@ -165,6 +165,14 @@ void UXTEditor::deleteRow()
|
|||
if( r < 0 )
|
||||
return;
|
||||
|
||||
int answer = QMessageBox::question( this,
|
||||
tr( "Deleting a row" ),
|
||||
tr( "Are you sure you want to delete this row?" ),
|
||||
QMessageBox::Yes,
|
||||
QMessageBox::Cancel );
|
||||
if( QMessageBox::Yes != answer )
|
||||
return;
|
||||
|
||||
std::vector< STRING_MANAGER::TStringInfo >::iterator itr = d_ptr->infos.begin();
|
||||
itr += r;
|
||||
d_ptr->infos.erase( itr );
|
||||
|
|
Loading…
Reference in a new issue