mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 12:53:51 +00:00
select first screen if none is in the setting
This commit is contained in:
parent
a1fea97c3b
commit
14d074e3e7
1 changed files with 3 additions and 1 deletions
|
@ -239,7 +239,9 @@ bool GraphicsPage::loadSettings()
|
||||||
QString resolution = width + QString(" x ") + height;
|
QString resolution = width + QString(" x ") + height;
|
||||||
QString screen = mGraphicsSettings.value(QString("Video/screen"));
|
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);
|
int resIndex = resolutionComboBox->findText(resolution, Qt::MatchStartsWith);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue