QTfrontend/pageoptions.cpp
changeset 5877 514b639c40da
parent 5745 71e69623be39
child 5878 404ca990793a
--- a/QTfrontend/pageoptions.cpp	Mon Sep 12 14:56:24 2011 +0200
+++ b/QTfrontend/pageoptions.cpp	Mon Sep 12 15:58:59 2011 +0200
@@ -299,7 +299,6 @@
             CBFullscreen = new QCheckBox(AGGroupBox);
             CBFullscreen->setText(QCheckBox::tr("Fullscreen"));
             GBAlayout->addWidget(CBFullscreen);
-            connect(CBFullscreen, SIGNAL(stateChanged(int)), this, SLOT(setFullscreen(void)));
 
             QLabel * quality = new QLabel(AGGroupBox);
             quality->setText(QLabel::tr("Quality"));
@@ -413,24 +412,19 @@
         previousQuality = this->SLQuality->value();
         this->SLQuality->setValue(this->SLQuality->maximum());
         this->SLQuality->setEnabled(false);
+        previousResolutionIndex = this->CBResolution->currentIndex();
+        this->CBResolution->setCurrentIndex(0);
+        this->CBResolution->setEnabled(false);
     } else {
         this->CBFullscreen->setChecked(previousFullscreenValue);
         this->CBFullscreen->setEnabled(true);
         this->SLQuality->setValue(previousQuality);
         this->SLQuality->setEnabled(true);
+        this->CBResolution->setCurrentIndex(previousResolutionIndex);
+        this->CBResolution->setEnabled(true);
     }
 }
 
-void PageOptions::setFullscreen(void)
-{
-    int tmp = this->CBResolution->currentIndex();
-    if (this->CBFullscreen->isChecked())
-        this->CBResolution->setCurrentIndex(0);
-    else
-        this->CBResolution->setCurrentIndex(previousResolutionIndex);
-    previousResolutionIndex = tmp;
-}
-
 void PageOptions::trimNetNick()
 {
     editNetNick->setText(editNetNick->text().trimmed());