Skip to content
Snippets Groups Projects
Commit fac2d91c authored by Benjamin Arnaud's avatar Benjamin Arnaud Committed by Pierre Lamot
Browse files

qt: Fix support for MLItemId in history


Previously they were considered invalid by the 'isNodeValid' function.

Signed-off-by: default avatarPierre Lamot <pierre@videolabs.io>
parent 58931a17
No related branches found
No related tags found
No related merge requests found
Pipeline #71647 passed with stages
in 36 minutes and 11 seconds
#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