mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Fix edit deck in clipboard clearing values (#5732)
* Fix edit deck in clipboard clearing values * fix build failures
This commit is contained in:
parent
4d8a124822
commit
0d2061365c
4 changed files with 26 additions and 12 deletions
|
|
@ -18,7 +18,7 @@ void testEmpty(const QString &clipboard)
|
|||
QString cp(clipboard);
|
||||
DeckList deckList;
|
||||
QTextStream stream(&cp); // text stream requires local copy
|
||||
deckList.loadFromStream_Plain(stream);
|
||||
deckList.loadFromStream_Plain(stream, false);
|
||||
|
||||
ASSERT_TRUE(deckList.getCardList().isEmpty());
|
||||
}
|
||||
|
|
@ -28,7 +28,7 @@ void testDeck(const QString &clipboard, const Result &result)
|
|||
QString cp(clipboard);
|
||||
DeckList deckList;
|
||||
QTextStream stream(&cp); // text stream requires local copy
|
||||
deckList.loadFromStream_Plain(stream);
|
||||
deckList.loadFromStream_Plain(stream, false);
|
||||
|
||||
ASSERT_EQ(result.name, deckList.getName().toStdString());
|
||||
ASSERT_EQ(result.comments, deckList.getComments().toStdString());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue