From 0d10d6f85dae8f01814e416757f65254912eaa96 Mon Sep 17 00:00:00 2001 From: marco Date: Tue, 4 Aug 2015 00:17:44 +0200 Subject: [PATCH] Fixes issue #1296 --- cockatrice/src/tab_deck_editor.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cockatrice/src/tab_deck_editor.cpp b/cockatrice/src/tab_deck_editor.cpp index 5c8ddfe3..83e966fc 100644 --- a/cockatrice/src/tab_deck_editor.cpp +++ b/cockatrice/src/tab_deck_editor.cpp @@ -658,7 +658,10 @@ void TabDeckEditor::actSwapCard() void TabDeckEditor::actAddCard() { - addCardHelper("main"); + if(QApplication::keyboardModifiers() & Qt::ControlModifier) + actAddCardToSideboard(); + else + addCardHelper("main"); } 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.")); actEditSets(); } -} \ No newline at end of file +}