Commit 8b0ebf85 authored by Jan Grulich's avatar Jan Grulich
Browse files

Display spinner after startup when connection is activating

BUG:332590
parent 90c3f0a9
......@@ -82,15 +82,12 @@ ConnectionIcon::ConnectionIcon(QObject* parent)
}
foreach (NetworkManager::ActiveConnection::Ptr activeConnection, NetworkManager::activeConnections()) {
activeConnectionAdded(activeConnection->path());
if (activeConnection->vpn()) {
NetworkManager::VpnConnection::Ptr vpnConnection;
vpnConnection = activeConnection.objectCast<NetworkManager::VpnConnection>();
if (vpnConnection) {
connect(vpnConnection.data(), SIGNAL(stateChanged(NetworkManager::VpnConnection::State,NetworkManager::VpnConnection::StateChangeReason)),
SLOT(vpnConnectionStateChanged(NetworkManager::VpnConnection::State,NetworkManager::VpnConnection::StateChangeReason)), Qt::UniqueConnection);
if (vpnConnection->state() == NetworkManager::VpnConnection::Activated) {
m_vpn = true;
}
if (vpnConnection && vpnConnection->state() == NetworkManager::VpnConnection::Activated) {
m_vpn = true;
}
}
}
......
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