Skip to content

Commit

Permalink
UI|Client: Hide the main window to ensure a critical message is visible
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Feb 13, 2015
1 parent 805c7b9 commit e4ad650
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doomsday/client/src/gl/sys_opengl.cpp
Expand Up @@ -237,15 +237,15 @@ dd_bool Sys_GLInitialize(void)
{
if(!CommandLine_Exists("-noglcheck"))
{
Sys_CriticalMessagef("OpenGL implementation is too old!\n"
Sys_CriticalMessagef("Your OpenGL is too old!\n"
" Driver version: %s\n"
" The minimum supported version is 2.0",
glGetString(GL_VERSION));
return false;
}
else
{
LOG_GL_WARNING("OpenGL implementation may be too old (2.0+ required, "
LOG_GL_WARNING("OpenGL may be too old (2.0+ required, "
"but driver reports %s)") << glGetString(GL_VERSION);
}
}
Expand Down
6 changes: 6 additions & 0 deletions doomsday/client/src/ui/nativeui.cpp
Expand Up @@ -34,6 +34,7 @@
#include <de/ByteArrayFile>

#include "ui/nativeui.h"
#include "ui/clientwindow.h"

void Sys_MessageBox(messageboxtype_t type, const char* title, const char* msg, const char* detailedMsg)
{
Expand All @@ -55,6 +56,11 @@ int Sys_MessageBox3(messageboxtype_t type, const char* title, const char* msg, c
return 0;
}

if(ClientWindow::mainExists())
{
ClientWindow::main().hide();
}

QMessageBox box;
box.setWindowTitle(title);
box.setText(msg);
Expand Down

0 comments on commit e4ad650

Please sign in to comment.