Fixed error messages when trying to show a dialog in nogui mode.

This commit is contained in:
Elias Pschernig 2008-02-10 14:29:27 +00:00
parent 9aab45f72f
commit bd54862523

View file

@ -293,6 +293,8 @@ int dialog::show(int xloc, int yloc)
int dialog::show()
{
if (disp_.video().faked()) return CLOSE_DIALOG;
if(disp_.video().update_locked()) {
ERR_DP << "display locked ignoring dialog '" << title_ << "' '" << message_->get_text() << "'\n";
return CLOSE_DIALOG;