mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2024-12-27 09:58:08 +01:00
Arbitration: better label for a popup menu entry
This commit is contained in:
parent
43477b77b5
commit
6ec9568020
1 changed files with 3 additions and 2 deletions
|
@ -265,7 +265,7 @@ void ArbitAssignments::populatePlayersMenu(QMenu &iMenu, const QPoint &iPoint)
|
||||||
iMenu.addAction(selectAllAction);
|
iMenu.addAction(selectAllAction);
|
||||||
|
|
||||||
// Action to assign the top move
|
// Action to assign the top move
|
||||||
QAction *assignTopMoveAction = new QAction(_q("Assign top move"), this);
|
QAction *assignTopMoveAction = new QAction(_q("Assign top move (if unique)"), this);
|
||||||
assignTopMoveAction->setStatusTip(_q("Assign the top move (if unique) to the selected player(s)"));
|
assignTopMoveAction->setStatusTip(_q("Assign the top move (if unique) to the selected player(s)"));
|
||||||
assignTopMoveAction->setShortcut(Qt::Key_T);
|
assignTopMoveAction->setShortcut(Qt::Key_T);
|
||||||
QObject::connect(assignTopMoveAction, SIGNAL(triggered()),
|
QObject::connect(assignTopMoveAction, SIGNAL(triggered()),
|
||||||
|
@ -508,9 +508,10 @@ void ArbitAssignments::assignTopMove()
|
||||||
results.search(m_game->getDic(), m_game->getBoard(),
|
results.search(m_game->getDic(), m_game->getBoard(),
|
||||||
m_game->getCurrentRack().getRack(),
|
m_game->getCurrentRack().getRack(),
|
||||||
m_game->getHistory().beforeFirstRound());
|
m_game->getHistory().beforeFirstRound());
|
||||||
// TODO: what if there are several moves?
|
|
||||||
if (results.size() == 1)
|
if (results.size() == 1)
|
||||||
helperAssignMove(Move(results.get(0)));
|
helperAssignMove(Move(results.get(0)));
|
||||||
|
else
|
||||||
|
LOG_DEBUG("The top move is not unique");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue