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 4049109a authored by Jan Grulich's avatar Jan Grulich

We probably want by default show only available connections

On the other hand we might want to have this configurable so users
can display previously configured connections
parent c59d20ab
......@@ -48,8 +48,13 @@ 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) {
return false;
}
return type == NetworkManager::ConnectionSettings::Wireless;
// TODO add an option to show already configured connections
NetworkModelItem::ItemType itemType = (NetworkModelItem::ItemType)sourceModel()->data(index, NetworkModel::ItemTypeRole).toUInt();
return itemType > NetworkModelItem::UnavailableConnection;
}
bool MobileProxyModel::lessThan(const QModelIndex& left, const QModelIndex& right) const
......
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