Changeset View
Changeset View
Standalone View
Standalone View
libs/models/networkmodel.cpp
Show First 20 Lines • Show All 629 Lines • ▼ Show 20 Line(s) | 615 | if (activePtr) { | |||
---|---|---|---|---|---|
630 | } | 630 | } | ||
631 | } | 631 | } | ||
632 | } | 632 | } | ||
633 | 633 | | |||
634 | void NetworkModel::availableConnectionAppeared(const QString &connection) | 634 | void NetworkModel::availableConnectionAppeared(const QString &connection) | ||
635 | { | 635 | { | ||
636 | NetworkManager::Device::Ptr device = NetworkManager::findNetworkInterface(qobject_cast<NetworkManager::Device*>(sender())->uni()); | 636 | NetworkManager::Device::Ptr device = NetworkManager::findNetworkInterface(qobject_cast<NetworkManager::Device*>(sender())->uni()); | ||
637 | if (device) { | 637 | if (device) { | ||
638 | beginResetModel(); | ||||
638 | addAvailableConnection(connection, device); | 639 | addAvailableConnection(connection, device); | ||
640 | endResetModel(); | ||||
639 | } | 641 | } | ||
640 | } | 642 | } | ||
641 | 643 | | |||
642 | void NetworkModel::availableConnectionDisappeared(const QString &connection) | 644 | void NetworkModel::availableConnectionDisappeared(const QString &connection) | ||
643 | { | 645 | { | ||
644 | for (NetworkModelItem *item : m_list.returnItems(NetworkItemsList::Connection, connection)) { | 646 | for (NetworkModelItem *item : m_list.returnItems(NetworkItemsList::Connection, connection)) { | ||
645 | bool available = false; | 647 | bool available = false; | ||
646 | const QString devicePath = item->devicePath(); | 648 | const QString devicePath = item->devicePath(); | ||
▲ Show 20 Lines • Show All 403 Lines • Show Last 20 Lines |