Merge pull request #1328 from marcofernandezheras/FixBug#1296
Ctrl + Double Click: Add card to SB
This commit is contained in:
commit
44d757f691
1 changed files with 5 additions and 2 deletions
|
@ -658,7 +658,10 @@ void TabDeckEditor::actSwapCard()
|
||||||
|
|
||||||
void TabDeckEditor::actAddCard()
|
void TabDeckEditor::actAddCard()
|
||||||
{
|
{
|
||||||
addCardHelper("main");
|
if(QApplication::keyboardModifiers() & Qt::ControlModifier)
|
||||||
|
actAddCardToSideboard();
|
||||||
|
else
|
||||||
|
addCardHelper("main");
|
||||||
}
|
}
|
||||||
|
|
||||||
void TabDeckEditor::actAddCardToSideboard()
|
void TabDeckEditor::actAddCardToSideboard()
|
||||||
|
@ -819,4 +822,4 @@ void TabDeckEditor::checkFirstRunDetected()
|
||||||
QMessageBox::information(this, tr("Welcome"), tr("Hi! It seems like you're running this version of Cockatrice for the first time.\nAll the sets in the card database have been enabled.\nRead more about changing the set order or disabling specific sets and consequent effects in the \"Edit Sets\" window."));
|
QMessageBox::information(this, tr("Welcome"), tr("Hi! It seems like you're running this version of Cockatrice for the first time.\nAll the sets in the card database have been enabled.\nRead more about changing the set order or disabling specific sets and consequent effects in the \"Edit Sets\" window."));
|
||||||
actEditSets();
|
actEditSets();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue