Commit 5c96c987 authored by Martin Kacej's avatar Martin Kacej

filtering hot spots from list view

parent 7928cb5c
......@@ -59,6 +59,8 @@ bool MobileProxyModel::filterAcceptsRow(int source_row, const QModelIndex& sourc
const NetworkManager::ConnectionSettings::ConnectionType type = (NetworkManager::ConnectionSettings::ConnectionType) sourceModel()->data(index, NetworkModel::TypeRole).toUInt();
if (type == NetworkManager::ConnectionSettings::Wireless) {
NetworkModelItem::ItemType itemType = (NetworkModelItem::ItemType)sourceModel()->data(index, NetworkModel::ItemTypeRole).toUInt();
if (sourceModel()->data(index,NetworkModel::SignalRole).toUInt() == 0)
return false; // if signal is 0 yet we still have connection, it means local access point -> we dont want to show that
if (showSavedMode()) {
return itemType == NetworkModelItem::UnavailableConnection;
} else {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment