mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 00:04:48 -07:00
fixed issue #49: when editing a remote deck, be able to directly save it there
This commit is contained in:
parent
f00eaa83d4
commit
0eee6d7ab9
23 changed files with 324 additions and 181 deletions
|
|
@ -18,7 +18,7 @@
|
|||
#include "dlg_create_token.h"
|
||||
#include "carddatabase.h"
|
||||
#include "color.h"
|
||||
#include "decklist.h"
|
||||
#include "deck_loader.h"
|
||||
#include "main.h"
|
||||
#include <QSettings>
|
||||
#include <QPainter>
|
||||
|
|
@ -747,9 +747,9 @@ void Player::initSayMenu()
|
|||
}
|
||||
}
|
||||
|
||||
void Player::setDeck(DeckList *_deck)
|
||||
void Player::setDeck(const DeckLoader &_deck)
|
||||
{
|
||||
deck = _deck;
|
||||
deck = new DeckLoader(_deck);
|
||||
aOpenDeckInDeckEditor->setEnabled(deck);
|
||||
|
||||
createPredefinedTokenMenu->clear();
|
||||
|
|
@ -792,7 +792,7 @@ void Player::actAlwaysRevealTopCard()
|
|||
|
||||
void Player::actOpenDeckInDeckEditor()
|
||||
{
|
||||
emit openDeckEditor(new DeckList(deck));
|
||||
emit openDeckEditor(*deck);
|
||||
}
|
||||
|
||||
void Player::actViewGraveyard()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue