Commit dae08e2d authored by Jan Möbius's avatar Jan Möbius

Added ignore to OpenGL Test message boxes

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9772 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 2c838ded
......@@ -1517,7 +1517,7 @@ bool Core::checkOpenGLCapabilities() {
}
if ( !ok ) {
QString message = tr("Error! The OpenGL capabilities of your current machine/driver are not sufficient!\n");
QString message = tr("Error! \nThe OpenGL capabilities of your current machine/driver are not sufficient!\n\n");
message += tr("The following checks failed:\n\n");
message += missing;
message += tr("\n\nPlease update your driver or graphics card.\n");
......@@ -1527,10 +1527,16 @@ bool Core::checkOpenGLCapabilities() {
std::cerr << message.toStdString() << std::endl;
QMessageBox::critical ( 0, tr( "Insufficient OpenGL Capabilities!"),message );
QMessageBox::StandardButton button = QMessageBox::critical ( 0, tr( "Insufficient OpenGL Capabilities!"),message,QMessageBox::Abort|QMessageBox::Ignore , QMessageBox::Abort);
// Unsafe operation, so quit the application
exit(1);
if ( button == QMessageBox::Abort )
exit(1);
else
QMessageBox::warning(0,tr( "Insufficient OpenGL Capabilities!"),tr("Ignoring OpenGL capabilities might lead to unstable Operation! Do it at your own risk!"));
} else if ( warn ) {
QString message = tr("Warning! The OpenGL capabilities of your current machine/driver could be insufficient!\n\n");
......
/*! \page changelog Changelog
*
* - <b>OpenFlipper 1.0 ( ? , 9691 RC7 )</b>
* - <b>OpenFlipper 1.0 ( 06.23.2010 , 9691 RC7 )</b>
* - <b>Core</b>
* - Added Light source management
* - Added global nodes to handle light sources
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment