mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-11 12:54:10 -07:00
Style lint.
Took 48 seconds
This commit is contained in:
parent
18d9992dc5
commit
9eb2e732b4
1 changed files with 6 additions and 3 deletions
|
|
@ -91,8 +91,9 @@ void DeckListHistoryManagerWidget::refreshList()
|
|||
|
||||
void DeckListHistoryManagerWidget::doUndo()
|
||||
{
|
||||
if (!historyManager->canUndo())
|
||||
if (!historyManager->canUndo()) {
|
||||
return;
|
||||
}
|
||||
|
||||
deckListModel->getDeckList()->restoreMemento(historyManager->undo(deckListModel->getDeckList()));
|
||||
deckListModel->rebuildTree();
|
||||
|
|
@ -104,8 +105,9 @@ void DeckListHistoryManagerWidget::doUndo()
|
|||
|
||||
void DeckListHistoryManagerWidget::doRedo()
|
||||
{
|
||||
if (!historyManager->canRedo())
|
||||
if (!historyManager->canRedo()) {
|
||||
return;
|
||||
}
|
||||
|
||||
deckListModel->getDeckList()->restoreMemento(historyManager->redo(deckListModel->getDeckList()));
|
||||
deckListModel->rebuildTree();
|
||||
|
|
@ -119,8 +121,9 @@ void DeckListHistoryManagerWidget::doRedo()
|
|||
void DeckListHistoryManagerWidget::onListClicked(QListWidgetItem *item)
|
||||
{
|
||||
// Ignore non-selectable items (like divider)
|
||||
if (!(item->flags() & Qt::ItemIsSelectable))
|
||||
if (!(item->flags() & Qt::ItemIsSelectable)) {
|
||||
return;
|
||||
}
|
||||
|
||||
const QString mode = item->data(Qt::UserRole).toString();
|
||||
int index = item->data(Qt::UserRole + 1).toInt();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue