[vlc-devel] [PATCH 08/18] qt: fullfill reset request if worker is already idle
Prince Gupta
guptaprince8832 at gmail.com
Thu Apr 1 14:29:43 UTC 2021
---
modules/gui/qt/medialibrary/mlbasemodel.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/modules/gui/qt/medialibrary/mlbasemodel.cpp b/modules/gui/qt/medialibrary/mlbasemodel.cpp
index 91527c7828..c3d00d65cb 100644
--- a/modules/gui/qt/medialibrary/mlbasemodel.cpp
+++ b/modules/gui/qt/medialibrary/mlbasemodel.cpp
@@ -130,6 +130,12 @@ void MLBaseModel::onVlcMlEvent(const MLEvent &event)
break;
}
}
+
+ if (m_mediaLib && m_mediaLib->idle() && m_need_reset)
+ {
+ emit resetRequested();
+ m_need_reset = false;
+ }
}
QString MLBaseModel::getFirstSymbol(QString str)
--
2.27.0
More information about the vlc-devel
mailing list