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 44fea819ce
commit fdfcf56369

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);
}