FEM Post: Fix crash on gui dialog only

This commit is contained in:
Stefan Tröger 2015-11-15 14:51:40 +01:00 committed by wmayer
parent acf3d67390
commit afdc3da1af

View File

@ -126,7 +126,8 @@ bool TaskDlgPost::reject()
void TaskDlgPost::modifyStandardButtons(QDialogButtonBox* box) {
box->button(QDialogButtonBox::Apply)->setDefault(true);
if(box->button(QDialogButtonBox::Apply))
box->button(QDialogButtonBox::Apply)->setDefault(true);
}