Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 1fbdb49b authored by Martin Kacej's avatar Martin Kacej

excluding APs from main view fix

parent 292bf439
......@@ -58,12 +58,12 @@ 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
NetworkModelItem::ItemType itemType = (NetworkModelItem::ItemType)sourceModel()->data(index, NetworkModel::ItemTypeRole).toUInt();
if (showSavedMode()) {
return itemType == NetworkModelItem::UnavailableConnection;
} else {
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
return itemType >= NetworkModelItem::AvailableConnection;
}
}
......
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