From f8d4b225365b64a8eda122153c6329eea1f686d0 Mon Sep 17 00:00:00 2001 From: Giles Bathgate Date: Sun, 3 Jul 2011 13:54:52 +0100 Subject: The first time the setting is read it will be undefined so need to default to true. diff --git a/src/glview.cc b/src/glview.cc index 16ab0e6..ef023f2 100644 --- a/src/glview.cc +++ b/src/glview.cc @@ -187,7 +187,7 @@ void GLView::initializeGL() } else { opencsg_support = false; QSettings settings; - if (settings.value("editor/opengl20_warning_show").toBool()) { + if (settings.value("editor/opengl20_warning_show",true).toBool()) { QTimer::singleShot(0, this, SLOT(display_opengl20_warning())); } } -- cgit v0.10.1