Do not reset the timer when changing turn, it causes problems in arbitration mode.

In fact, it could be more subtle: the timer should be reset whenever a
new turn is created (and only in this case).
This commit is contained in:
Olivier Teulière 2012-04-12 08:49:08 +02:00
parent 1086051e56
commit 731eca6e9c

View file

@ -108,9 +108,6 @@ MainWindow::MainWindow(QWidget *iParent)
int timerTotal = qs.value(PrefsDialog::kINTF_TIMER_TOTAL_DURATION, 180).toInt();
int timerAlert = qs.value(PrefsDialog::kINTF_TIMER_ALERT_DURATION, 30).toInt();
m_timerModel = new TimerModel(timerTotal, timerAlert);
// Reset the timer when the turn changes
QObject::connect(this, SIGNAL(turnChanged(int, bool)),
m_timerModel, SLOT(resetTimer()));
// TODO: connect to some of the timer signals (alert() and expired())
QObject::connect(this, SIGNAL(gameChangedNonConst(PublicGame*)),