android gui fix for applysettings when quit settingsdialog

This commit is contained in:
doitux
2012-12-25 01:14:32 +01:00
parent 74afc8d46f
commit de3cc9d8de
+5 -2
View File
@@ -683,11 +683,13 @@ void gameTableImpl::callSettingsDialog()
void gameTableImpl::applySettings(settingsDialogImpl* mySettingsDialog)
{
#ifndef GUI_800x480 //currently not for mobile guis because we just use the default style here
//apply card deck style
myCardDeckStyle->readStyleFile(QString::fromUtf8(myConfig->readConfigString("CurrentCardDeckStyle").c_str()));
checkActionLabelPosition();
//apply game table style
myGameTableStyle->readStyleFile(QString::fromUtf8(myConfig->readConfigString("CurrentGameTableStyle").c_str()));
#endif
#ifdef GUI_800x480
//cardschancemonitor show/hide
@@ -825,9 +827,10 @@ void gameTableImpl::applySettings(settingsDialogImpl* mySettingsDialog)
}
}
}
#ifndef GUI_800x480 //currently not for mobile guis because we just use the default style here
refreshGameTableStyle();
// qDebug() << "table: " << myGameTableStyle->getStyleDescription() << myGameTableStyle->getState();
#endif
//qDebug() << "table: " << myGameTableStyle->getStyleDescription() << myGameTableStyle->getState();
if(this->isVisible() && myGameTableStyle->getState() != GT_STYLE_OK) myGameTableStyle->showErrorMessage();
//blind buttons refresh