blob: 306b7dfe21879b9da890f2d4104da7ab65127db9 (
plain) (
tree)
|
|
From f6a924b37880b7340e796846a6e5474413ca6533 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ivan=20=C4=8Cuki=C4=87?= <ivan.cukic@kde.org>
Date: Tue, 17 Mar 2020 14:37:24 +0100
Subject: Make sure we have saved network state before accessing it
BUG:418262
---
kded/service.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kded/service.cpp b/kded/service.cpp
index 4b5f65a..ff67d43 100644
--- a/kded/service.cpp
+++ b/kded/service.cpp
@@ -420,7 +420,7 @@ void PlasmaVaultService::openVaultInFileManager(const QString &device)
new KRun(QUrl::fromLocalFile((QString)vault->mountPoint().data()), nullptr);
},
[this, vault] {
- if (vault->status() != VaultInfo::Opened) {
+ if (vault->status() != VaultInfo::Opened && d->savedNetworkingState) {
auto& devicesInhibittingNetworking = d->savedNetworkingState->devicesInhibittingNetworking;
devicesInhibittingNetworking.removeAll(vault->device().data());
d->restoreNetworkingState();
--
cgit v1.1
|