Commit 86af8814 authored by Jan Grulich's avatar Jan Grulich
Browse files

Check whether the hotspot still exists after reboot or suspend

parent 5e55e45d
......@@ -53,8 +53,6 @@ public:
static QString hotspotPassword();
static void setHotspotPassword(const QString &password);
static bool hotspotCreated();
static QString hotspotConnectionPath();
static void setHotspotConnectionPath(const QString &path);
......
......@@ -85,6 +85,15 @@ Handler::Handler(QObject *parent)
QStringLiteral("secretsError"),
this, SLOT(secretAgentError(QString, QString)));
if (!Configuration::hotspotConnectionPath().isEmpty()) {
NetworkManager::ActiveConnection::Ptr hotspot = NetworkManager::findActiveConnection(Configuration::hotspotConnectionPath());
if (!hotspot) {
Configuration::setHotspotConnectionPath(QString());
Q_EMIT hotspotDisabled();
}
}
m_hotspotSupported = checkHotspotSupported();
if (NetworkManager::checkVersion(1, 16, 0)) {
......
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