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
38b83aca
Commit
38b83aca
authored
Jun 21, 2014
by
Daenyth
Browse files
Fix #105 - remove emdash from card type when getting main type
parent
c3ad6b1f
Changes
2
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/carddatabase.cpp
View file @
38b83aca
...
...
@@ -295,6 +295,8 @@ QString CardInfo::getMainCardType() const
int
pos
;
if
((
pos
=
result
.
indexOf
(
'-'
))
!=
-
1
)
result
.
remove
(
pos
,
result
.
length
());
if
((
pos
=
result
.
indexOf
(
"—"
))
!=
-
1
)
result
.
remove
(
pos
,
result
.
length
());
if
((
pos
=
result
.
indexOf
(
"//"
))
!=
-
1
)
result
.
remove
(
pos
,
result
.
length
());
result
=
result
.
simplified
();
...
...
cockatrice/src/main.cpp
View file @
38b83aca
...
...
@@ -116,9 +116,9 @@ int main(int argc, char *argv[])
qtTranslator
=
new
QTranslator
;
translator
=
new
QTranslator
;
installNewTranslator
();
qsrand
(
QDateTime
::
currentDateTime
().
toTime_t
());
bool
startMainProgram
=
true
;
const
QString
dataDir
=
QDesktopServices
::
storageLocation
(
QDesktopServices
::
DataLocation
);
if
(
!
db
->
getLoadSuccess
())
...
...
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