Skip to content

Commit 7c29656

Browse files
authored
let the model decide if the apply was successful and should close (#6912)
1 parent 3900faa commit 7c29656

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

qtfred/src/mission/util.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ bool rejectOrCloseHandler(__UNUSED QDialog* dialog,
108108
}
109109

110110
if (button == fso::fred::DialogButton::Yes) {
111-
model->apply();
112-
return true;
111+
return model->apply(); // only close if apply was successful
113112
}
114113
if (button == fso::fred::DialogButton::No) {
115114
model->reject();

0 commit comments

Comments
 (0)