mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2024-12-28 09:58:15 +01:00
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:
parent
1086051e56
commit
731eca6e9c
1 changed files with 0 additions and 3 deletions
|
@ -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*)),
|
||||
|
|
Loading…
Reference in a new issue