Commit 5ab669f92da954c944e2acd3f2a1de8ca3ddf0c0
1 parent
2bd7e154
Removed some bad commits
Showing
1 changed file
with
1 additions
and
5 deletions
openbr/core/bee.cpp
| @@ -71,11 +71,7 @@ FileList BEE::readSigset(const File &sigset, bool ignoreMetadata) | @@ -71,11 +71,7 @@ FileList BEE::readSigset(const File &sigset, bool ignoreMetadata) | ||
| 71 | for (int i=0; i<attributes.length(); i++) { | 71 | for (int i=0; i<attributes.length(); i++) { |
| 72 | const QString key = attributes.item(i).nodeName(); | 72 | const QString key = attributes.item(i).nodeName(); |
| 73 | const QString value = attributes.item(i).nodeValue(); | 73 | const QString value = attributes.item(i).nodeValue(); |
| 74 | - if (key == "url") file.name = value.split('/').last(); | ||
| 75 | - else if (key == "Rect") { | ||
| 76 | - QStringList points = value.split(','); | ||
| 77 | - file.appendRect(QRect(points.at(0).toInt(),points.at(1).toInt(),points.at(2).toInt()-points.at(0).toInt(),value.split(',').at(3).toInt()-points.at(1).toInt())); | ||
| 78 | - } | 74 | + if (key == "file-name") file.name = value; |
| 79 | else if (!ignoreMetadata) file.set(key, value); | 75 | else if (!ignoreMetadata) file.set(key, value); |
| 80 | } | 76 | } |
| 81 | 77 |