[vlc-devel] [PATCH 24/49] qt: remove extraneous assertion in NetworkModel
Pierre Lamot
pierre at videolabs.io
Fri Oct 11 15:17:48 CEST 2019
---
modules/gui/qt/components/mediacenter/mlnetworkmodel.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/gui/qt/components/mediacenter/mlnetworkmodel.cpp b/modules/gui/qt/components/mediacenter/mlnetworkmodel.cpp
index 5dc85bde9e..0b8901241c 100644
--- a/modules/gui/qt/components/mediacenter/mlnetworkmodel.cpp
+++ b/modules/gui/qt/components/mediacenter/mlnetworkmodel.cpp
@@ -107,7 +107,8 @@ bool MLNetworkModel::setData( const QModelIndex& idx, const QVariant& value, int
if ( role != NETWORK_INDEXED )
return false;
auto enabled = value.toBool();
- assert( m_items[idx.row()].indexed != enabled );
+ if ( m_items[idx.row()].indexed == enabled )
+ return false;
int res;
if ( enabled )
res = vlc_ml_add_folder( m_ml, qtu( m_items[idx.row()].mainMrl.toString( QUrl::None ) ) );
--
2.20.1
More information about the vlc-devel
mailing list