From b55bbb1366f088576b2b19e25a4b850de9788fca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Thu, 16 Oct 2014 17:34:03 +0200 Subject: [PATCH] removed de use of OnStartFlowSelectionDialog --- YACReader/viewer.cpp | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/YACReader/viewer.cpp b/YACReader/viewer.cpp index 10812be8..de1021f0 100644 --- a/YACReader/viewer.cpp +++ b/YACReader/viewer.cpp @@ -66,18 +66,10 @@ shouldOpenPrevious(false) QSettings * settings = new QSettings(YACReader::getSettingsPath()+"/YACReader.ini",QSettings::IniFormat); //CONFIG GOTO_FLOW-------------------------------------------------------- - if(QGLFormat::hasOpenGL() && !settings->contains(USE_OPEN_GL)) - { - OnStartFlowSelectionDialog * flowSelDialog = new OnStartFlowSelectionDialog(); - - flowSelDialog->exec(); - if(flowSelDialog->result() == QDialog::Accepted) - settings->setValue(USE_OPEN_GL,2); - else - settings->setValue(USE_OPEN_GL,0); - - delete flowSelDialog; - } + if(QGLFormat::hasOpenGL() && !settings->contains(USE_OPEN_GL)) + settings->setValue(USE_OPEN_GL,2); + else + settings->setValue(USE_OPEN_GL,0); if(QGLFormat::hasOpenGL() && (settings->value(USE_OPEN_GL).toBool() == true)) goToFlow = new GoToFlowGL(this,Configuration::getConfiguration().getFlowType());