Skip to content
Snippets Groups Projects
Commit 1752f29e authored by Benjamin Arnaud's avatar Benjamin Arnaud
Browse files

qt: Fix support for MLItemId in history

Previously they were considered invalid by the 'isNodeValid' function.
parent 7f19eca5
No related branches found
Tags 3.2.83 3.3.0-beta03
No related merge requests found
#include "navigation_history.hpp"
#include <cassert>
#include "network/networkmediamodel.hpp"
#include "medialibrary/mlqmltypes.hpp"
NavigationHistory::NavigationHistory(QObject *parent)
: QObject(parent)
......@@ -54,7 +55,7 @@ static bool isNodeValid(QVariant& value)
|| value.canConvert(QVariant::UInt)
|| value.canConvert(QVariant::Int)
|| value.canConvert(QVariant::Bool)
)
|| value.canConvert<MLItemId>())
{
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment