1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-18 13:20:47 +00:00

select first screen if none is in the setting

This commit is contained in:
Sebastian Wick 2013-06-23 04:21:32 +02:00
parent a1fea97c3b
commit 14d074e3e7

View File

@ -239,7 +239,9 @@ bool GraphicsPage::loadSettings()
QString resolution = width + QString(" x ") + height;
QString screen = mGraphicsSettings.value(QString("Video/screen"));
screenComboBox->setCurrentIndex(screenComboBox->findText(QString("Screen ") + screen));
int screenIndex = screenComboBox->findText(QString("Screen ") + screen);
if (screenIndex != -1)
screenComboBox->setCurrentIndex(screenIndex);
int resIndex = resolutionComboBox->findText(resolution, Qt::MatchStartsWith);