Fixed id calc
This commit is contained in:
parent
3ca5e0d537
commit
ecd5d3ae4e
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ cargo_entity::cargo_entity(const QString &title, int volume) : _title(title), _v
|
|||
this->_id = volume;
|
||||
auto hash = QCryptographicHash::hash(title.toLocal8Bit(), QCryptographicHash::Md5);
|
||||
for (auto bit : hash) {
|
||||
this->_id |= bit;
|
||||
this->_id += bit;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue