Display an informational dialog when OpenGL cannot properly be initialized

This commit is contained in:
Dan Paulat 2025-07-11 00:26:52 -05:00
parent a6f8547455
commit 8e9db6a2fe
3 changed files with 69 additions and 22 deletions

View file

@ -151,8 +151,23 @@ int main(int argc, char* argv[])
// Run Qt main loop
{
scwx::qt::main::MainWindow w;
w.show();
result = a.exec();
bool initialized = false;
try
{
w.show();
initialized = true;
}
catch (const std::exception& ex)
{
logger_->critical(ex.what());
}
if (initialized)
{
result = a.exec();
}
}
}