diff options
author | Giles Bathgate <gilesbathgate@gmail.com> | 2011-07-03 12:54:52 (GMT) |
---|---|---|
committer | Giles Bathgate <gilesbathgate@gmail.com> | 2011-07-03 12:54:52 (GMT) |
commit | f8d4b225365b64a8eda122153c6329eea1f686d0 (patch) | |
tree | 6f8a2ce9fdf9353bed4cc9cfaa85ccf711b5cbd1 | |
parent | 7d4ba81068f43d498251495227e4e83f6164873b (diff) |
The first time the setting is read it will be undefined so need to default to true.
-rw-r--r-- | src/glview.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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())); } } |