fixed bug in the default value for USE_OPEN_GL

fixed settings file path in ShortcutsManager
This commit is contained in:
Luis Ángel San Martín
2014-10-19 22:11:54 +02:00
parent a64733d70b
commit e6620a46ed
3 changed files with 20 additions and 18 deletions

View File

@ -167,15 +167,7 @@ void LibraryWindow::doLayout()
//---------------------------------------------------------------------------
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;
settings->setValue(USE_OPEN_GL,2);
}
//FOLDERS FILTER-------------------------------------------------------------