configfile minimize disc-access

timoutanimation stops if player start a "local game"
This commit is contained in:
doitux
2007-06-09 09:45:04 +00:00
parent db4aea3f78
commit bfbcddb693
5 changed files with 50 additions and 70 deletions
@@ -36,4 +36,6 @@ changeHumanPlayerNameDialogImpl::changeHumanPlayerNameDialogImpl(QWidget *parent
void changeHumanPlayerNameDialogImpl::savePlayerName() {
myConfig->writeConfigString("MyName", lineEdit->text().toUtf8().constData());
}
//write buffer to disc
myConfig->writeBuffer();
}
+5 -1
View File
@@ -2513,7 +2513,7 @@ void mainWindowImpl::keyPressEvent ( QKeyEvent * event ) {
if (event->key() == Qt::Key_F3) { pushButton_BetRaise->click(); }
if (event->key() == Qt::Key_F10) { switchLeftToolBox(); }
if (event->key() == Qt::Key_F11) { switchRightToolBox(); }
// if (event->key() == Qt::Key_W) { qApp->quit(); } //s
if (event->key() == Qt::Key_S) {} //s
if (event->key() == 16777249) {
pushButton_break->click();
ctrlPressed = TRUE;
@@ -2588,6 +2588,10 @@ void mainWindowImpl::localGameModification() {
tabWidget_Left->setCurrentIndex(0);
tabWidget_Left->disableTab(1, TRUE);
int i;
for (i=0; i<MAX_NUMBER_OF_PLAYERS; i++ ) {
setLabelArray[i]->stopTimeOutAnimation();
}
}
void mainWindowImpl::networkGameModification() {
@@ -240,6 +240,9 @@ void settingsDialogImpl::isAccepted() {
myConfig->writeConfigInt("LogInterval", comboBox_logInterval->currentIndex());
}
//write buffer to disc
myConfig->writeBuffer();
//Wenn alles richtig eingegeben wurde --> Dialog schließen
if(settingsCorrect) { this->hide(); }
}