mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-20 01:12:15 -07:00
Update last loaded timestamp in decklist file and then restore original last modified timestamp if a user requests a deck load.
This commit is contained in:
parent
132159c7f6
commit
f5dcf522f1
8 changed files with 82 additions and 12 deletions
|
|
@ -307,7 +307,7 @@ void DeckViewContainer::replaceDeckStorageWithDeckView(QMouseEvent *event, DeckP
|
|||
QString deckString;
|
||||
DeckLoader deck;
|
||||
|
||||
bool error = !deck.loadFromFile(fileName, fmt);
|
||||
bool error = !deck.loadFromFile(fileName, fmt, true);
|
||||
if (!error) {
|
||||
deckString = deck.writeToString_Native();
|
||||
error = deckString.length() > MAX_FILE_LENGTH;
|
||||
|
|
@ -357,7 +357,7 @@ void DeckViewContainer::loadDeckFromFile(const QString &filePath)
|
|||
QString deckString;
|
||||
DeckLoader deck;
|
||||
|
||||
bool error = !deck.loadFromFile(filePath, fmt);
|
||||
bool error = !deck.loadFromFile(filePath, fmt, true);
|
||||
if (!error) {
|
||||
deckString = deck.writeToString_Native();
|
||||
error = deckString.length() > MAX_FILE_LENGTH;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue