projects
/
irwi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a00e73a
)
Fixed mfg name in remotes
author
Torste Aikio
<zokier@zokier.laptop>
Tue, 22 Jun 2010 08:14:18 +0000
(11:14 +0300)
committer
Torste Aikio
<zokier@zokier.laptop>
Tue, 22 Jun 2010 08:14:18 +0000
(11:14 +0300)
src/remotedbmgr.cpp
patch
|
blob
|
history
diff --git
a/src/remotedbmgr.cpp
b/src/remotedbmgr.cpp
index
67a6d4c
..
b22a592
100644
(file)
--- a/
src/remotedbmgr.cpp
+++ b/
src/remotedbmgr.cpp
@@
-91,12
+91,11
@@
RemoteList RemoteDBMgr::parseRemotes(QDomElement &mfgEl)
for (int i = 0; i < models.size(); ++i) {
QDomElement modelEl = models.at(i).toElement();
if (!modelEl.isNull()) {
for (int i = 0; i < models.size(); ++i) {
QDomElement modelEl = models.at(i).toElement();
if (!modelEl.isNull()) {
- if (modelEl.hasAttribute("id")
- && modelEl.hasAttribute("name")
+ if (modelEl.hasAttribute("name")
&& modelEl.hasAttribute("rating")
&& modelEl.hasAttribute("vote_count")) {
remotes << new Remote(modelEl.attribute("name"),
&& modelEl.hasAttribute("rating")
&& modelEl.hasAttribute("vote_count")) {
remotes << new Remote(modelEl.attribute("name"),
- modelEl.attribute("id"),
+ mfgEl.attribute("id"),
modelEl.attribute("rating").toInt(),
modelEl.attribute("vote_count").toInt());
}
modelEl.attribute("rating").toInt(),
modelEl.attribute("vote_count").toInt());
}