qt: Add fallback to default shader on load

This commit is contained in:
ts-korhonen
2022-03-01 22:20:19 +02:00
parent 9f6dc268b2
commit 109683300a
2 changed files with 19 additions and 29 deletions

View File

@@ -74,7 +74,7 @@ OpenGLOptionsDialog::accept()
else
options->addDefaultShader();
} catch (std::runtime_error &e) {
} catch (const std::runtime_error &e) {
delete options;
QMessageBox msgBox(this);