mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Fix canceling cancel request in edited group
In case of a modified group, pressing cancel in the confirmation dialog of cancel led to discarding the changes instead of returning to the edit widget.
This commit is contained in:
parent
663467e214
commit
7067a4d004
@ -227,6 +227,9 @@ void EditGroupWidget::cancel()
|
||||
tr("Entry has unsaved changes"),
|
||||
MessageBox::Cancel | MessageBox::Save | MessageBox::Discard,
|
||||
MessageBox::Cancel);
|
||||
if (result == MessageBox::Cancel) {
|
||||
return;
|
||||
}
|
||||
if (result == MessageBox::Save) {
|
||||
apply();
|
||||
setModified(false);
|
||||
|
Loading…
Reference in New Issue
Block a user