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
c3a68fcb
Commit
c3a68fcb
authored
Jul 27, 2014
by
pliu037
Browse files
Cleaned up some lines of code
parent
1a601d95
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/carddatabase.cpp
View file @
c3a68fcb
...
@@ -129,7 +129,7 @@ void PictureLoader::processLoadQueue()
...
@@ -129,7 +129,7 @@ void PictureLoader::processLoadQueue()
QString
setName
=
ptl
.
getSetName
();
QString
setName
=
ptl
.
getSetName
();
QImage
image
;
QImage
image
;
if
(
!
image
.
load
(
QString
(
"%1/%2/%3.full.jpg"
).
arg
(
picsPath
).
arg
(
"CUSTOM"
).
arg
(
correctedName
)))
if
(
!
image
.
load
(
QString
(
"%1/%2/%3.full.jpg"
).
arg
(
picsPath
).
arg
(
"CUSTOM"
).
arg
(
correctedName
)))
{
if
(
!
image
.
load
(
QString
(
"%1/%2/%3.full.jpg"
).
arg
(
picsPath
).
arg
(
setName
).
arg
(
correctedName
)))
if
(
!
image
.
load
(
QString
(
"%1/%2/%3.full.jpg"
).
arg
(
picsPath
).
arg
(
setName
).
arg
(
correctedName
)))
//if (!image.load(QString("%1/%2/%3%4.full.jpg").arg(picsPath).arg(setName).arg(correctedName).arg(1)))
//if (!image.load(QString("%1/%2/%3%4.full.jpg").arg(picsPath).arg(setName).arg(correctedName).arg(1)))
if
(
!
image
.
load
(
QString
(
"%1/%2/%3/%4.full.jpg"
).
arg
(
picsPath
).
arg
(
"downloadedPics"
).
arg
(
setName
).
arg
(
correctedName
)))
{
if
(
!
image
.
load
(
QString
(
"%1/%2/%3/%4.full.jpg"
).
arg
(
picsPath
).
arg
(
"downloadedPics"
).
arg
(
setName
).
arg
(
correctedName
)))
{
...
@@ -143,8 +143,8 @@ void PictureLoader::processLoadQueue()
...
@@ -143,8 +143,8 @@ void PictureLoader::processLoadQueue()
else
else
emit
imageLoaded
(
ptl
.
getCard
(),
QImage
());
emit
imageLoaded
(
ptl
.
getCard
(),
QImage
());
}
}
continue
;
}
}
}
emit
imageLoaded
(
ptl
.
getCard
(),
image
);
emit
imageLoaded
(
ptl
.
getCard
(),
image
);
}
}
...
...
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