Skip to content

Commit 122ab0d

Browse files
committed
gui: update also tournament games' result in tab title
1 parent 2b34d12 commit 122ab0d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

projects/gui/src/mainwindow.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,9 @@ void MainWindow::writeSettings()
395395

396396
void MainWindow::addGame(ChessGame* game)
397397
{
398+
connect(game, SIGNAL(finished(ChessGame*)),
399+
this, SLOT(onGameFinished(ChessGame*)));
400+
398401
Tournament* tournament = qobject_cast<Tournament*>(QObject::sender());
399402
TabData tab(game, tournament);
400403

@@ -419,9 +422,6 @@ void MainWindow::addGame(ChessGame* game)
419422

420423
if (m_tabs.size() >= 2)
421424
m_tabBar->parentWidget()->show();
422-
423-
connect(game, SIGNAL(finished(ChessGame*)),
424-
this, SLOT(onGameFinished(ChessGame*)));
425425
}
426426

427427
void MainWindow::removeGame(int index)

0 commit comments

Comments
 (0)