Qt/GameTracker: Register missing metatype

This commit is contained in:
spycrab 2018-05-27 05:32:33 +02:00
parent 7b07424885
commit 0cf59adeb5
1 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,8 @@ static const QStringList game_filters{
GameTracker::GameTracker(QObject* parent) : QFileSystemWatcher(parent) GameTracker::GameTracker(QObject* parent) : QFileSystemWatcher(parent)
{ {
qRegisterMetaType<std::shared_ptr<const UICommon::GameFile>>(); qRegisterMetaType<std::shared_ptr<const UICommon::GameFile>>();
qRegisterMetaType<std::string>();
connect(this, &QFileSystemWatcher::directoryChanged, this, &GameTracker::UpdateDirectory); connect(this, &QFileSystemWatcher::directoryChanged, this, &GameTracker::UpdateDirectory);
connect(this, &QFileSystemWatcher::fileChanged, this, &GameTracker::UpdateFile); connect(this, &QFileSystemWatcher::fileChanged, this, &GameTracker::UpdateFile);