QTfrontend/gameuiconfig.cpp
branch0.9.19
changeset 8902 a94c074fd483
parent 8799 44e520374cfc
child 8924 13ac59499066
--- a/QTfrontend/gameuiconfig.cpp	Tue Apr 16 19:53:52 2013 +0200
+++ b/QTfrontend/gameuiconfig.cpp	Wed Apr 17 14:57:56 2013 +0200
@@ -94,8 +94,8 @@
     // If left blank reset the resolution to the default
     wWidth = (wWidth == "" ? widthStr : wWidth);
     wHeight = (wHeight == "" ? heightStr : wHeight);
-    Form->ui.pageOptions->windowWidthEdit->setText(wWidth);
-    Form->ui.pageOptions->windowHeightEdit->setText(wHeight);
+    Form->ui.pageOptions->windowWidthEdit->setValue(wWidth.toInt());
+    Form->ui.pageOptions->windowHeightEdit->setValue(wHeight.toInt());
 
     Form->ui.pageOptions->CBResolution->setCurrentIndex((t < 0) ? 1 : t);
     Form->ui.pageOptions->CBFullscreen->setChecked(value("video/fullscreen", false).toBool());