Commit 8b0ed18e51ac6b76f26055c72edccec1824fc8b7

Authored by Josh Klontz
1 parent 5c7fd6bf

fixed bug where Globals->classes should be repopulated

Showing 1 changed file with 2 additions and 0 deletions
sdk/openbr_plugin.cpp
... ... @@ -349,6 +349,8 @@ QDataStream &br::operator<<(QDataStream &stream, const File &file)
349 349 QDataStream &br::operator>>(QDataStream &stream, File &file)
350 350 {
351 351 return stream >> file.name >> file.m_metadata;
  352 + const QVariant label = file.m_metadata.value("Label");
  353 + if (!label.isNull()) file.set("Label", label); // Trigger population of Globals->classes
352 354 }
353 355  
354 356 /* FileList - public methods */
... ...