Show Anyway button needs to be enabled/disabled in paramsToDialog.

Else, the state set on first launch persists, notwithstanding the change of function state.
This commit is contained in:
Juergen Spitzmueller 2015-04-05 10:50:30 +02:00
parent 90772a01e7
commit 80f992fc29

View File

@ -72,7 +72,6 @@ GuiErrorList::GuiErrorList(GuiView & lv)
bc().setPolicy(ButtonPolicy::OkCancelPolicy);
bc().setCancel(closePB);
showAnywayPB->setEnabled(lyx::getStatus(FuncRequest(LFUN_BUFFER_VIEW_CACHE)).enabled());
}
@ -125,6 +124,8 @@ void GuiErrorList::paramsToDialog()
for (; it != en; ++it)
errorsLW->addItem(toqstr(it->error));
errorsLW->setCurrentRow(0);
showAnywayPB->setEnabled(
lyx::getStatus(FuncRequest(LFUN_BUFFER_VIEW_CACHE)).enabled());
}