diff --git a/modules/gui/qt/util/navigation_history.cpp b/modules/gui/qt/util/navigation_history.cpp
index a03ebb3566511f69f026675cbbfdf49cfa016a40..c8a92a78219bd66676483ae657302dfe9d322891 100644
--- a/modules/gui/qt/util/navigation_history.cpp
+++ b/modules/gui/qt/util/navigation_history.cpp
@@ -1,6 +1,7 @@
 #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;
     }