QTfrontend/gameuiconfig.cpp
changeset 8185 1c3739ba4352
parent 8184 e0c8fad98022
child 8186 4ff8690df1b0
--- a/QTfrontend/gameuiconfig.cpp	Sun Dec 02 14:51:54 2012 +0100
+++ b/QTfrontend/gameuiconfig.cpp	Sun Dec 02 15:23:59 2012 +0100
@@ -141,7 +141,8 @@
 
 void GameUIConfig::reloadVideosValues(void)
 {
-    Form->ui.pageVideos->framerateBox->setValue(value("videorec/fps",25).toUInt());
+    Form->ui.pageVideos->framerateBox->setCurrentIndex(1); //set to 25 fps
+
     Form->ui.pageVideos->bitrateBox->setValue(value("videorec/bitrate",400).toUInt());
     bool useGameRes = value("videorec/usegameres",true).toBool();
     if (useGameRes)
@@ -529,7 +530,7 @@
 
 int GameUIConfig::rec_Framerate()
 {
-    return Form->ui.pageVideos->framerateBox->value();
+    return Form->ui.pageVideos->framerateBox->itemData(Form->ui.pageVideos->framerateBox->currentIndex()).toUInt();
 }
 
 int GameUIConfig::rec_Bitrate()