mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2024-12-27 09:58:08 +01:00
Arbitration: fix a focus problem
This commit is contained in:
parent
97f4355502
commit
e55f05e325
2 changed files with 3 additions and 2 deletions
|
@ -214,7 +214,6 @@ ArbitrationWidget::ArbitrationWidget(QWidget *parent,
|
|||
refresh();
|
||||
|
||||
// Give focus to the rack
|
||||
// FIXME: for some reason, the focus gets lost later...
|
||||
lineEditRack->setFocus();
|
||||
lineEditRack->selectAll();
|
||||
}
|
||||
|
|
|
@ -409,7 +409,9 @@ void MainWindow::updateForGame(PublicGame *iGame)
|
|||
setWindowTitle(_q("Arbitration game") + " - Eliot");
|
||||
m_ui.groupBoxPlayers->setTitle(_q("Arbitration"));
|
||||
|
||||
m_arbitrationWidget = new ArbitrationWidget(NULL, iGame, m_coordModel);
|
||||
// Note: we specify the parent immediately, otherwise the
|
||||
// reparenting creates focus issues
|
||||
m_arbitrationWidget = new ArbitrationWidget(m_ui.groupBoxPlayers, iGame, m_coordModel);
|
||||
m_ui.groupBoxPlayers->layout()->addWidget(m_arbitrationWidget);
|
||||
QObject::connect(m_arbitrationWidget, SIGNAL(gameUpdated()),
|
||||
this, SIGNAL(gameUpdated()));
|
||||
|
|
Loading…
Reference in a new issue