Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
3ea81dfe
Commit
3ea81dfe
authored
Oct 04, 2011
by
unknown
Browse files
server deck hash fix
parent
0bb4ef8b
Changes
2
Hide whitespace changes
Inline
Side-by-side
common/decklist.cpp
View file @
3ea81dfe
...
...
@@ -96,7 +96,7 @@ void InnerDecklistNode::clearTree()
}
DecklistCardNode
::
DecklistCardNode
(
DecklistCardNode
*
other
,
InnerDecklistNode
*
_parent
)
:
AbstractDecklistCardNode
(
_parent
),
name
(
other
->
getName
()),
number
(
other
->
getNumber
())
:
AbstractDecklistCardNode
(
_parent
),
name
(
other
->
getName
()),
number
(
other
->
getNumber
())
,
price
(
other
->
getPrice
())
{
}
...
...
@@ -357,6 +357,7 @@ void DeckList::loadFromXml(QXmlStreamReader *xml)
}
}
}
updateDeckHash
();
}
bool
DeckList
::
loadFromFile_Native
(
QIODevice
*
device
)
...
...
@@ -415,6 +416,7 @@ bool DeckList::loadFromStream_Plain(QTextStream &in)
++
okRows
;
new
DecklistCardNode
(
line
.
mid
(
i
+
1
),
number
,
zone
);
}
updateDeckHash
();
return
(
okRows
>
0
);
}
...
...
@@ -455,10 +457,8 @@ bool DeckList::loadFromFile(const QString &fileName, FileFormat fmt)
case
PlainTextFormat
:
result
=
loadFromFile_Plain
(
&
file
);
break
;
case
CockatriceFormat
:
result
=
loadFromFile_Native
(
&
file
);
break
;
}
if
(
result
)
{
updateDeckHash
();
if
(
result
)
emit
deckLoaded
();
}
return
result
;
}
...
...
servatrice/src/servatrice.cpp
View file @
3ea81dfe
...
...
@@ -424,4 +424,4 @@ void Servatrice::shutdownTimeout()
deleteLater
();
}
const
QString
Servatrice
::
versionString
=
"Servatrice 0.2011
0921
"
;
const
QString
Servatrice
::
versionString
=
"Servatrice 0.2011
1004
"
;
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment