summaryrefslogtreecommitdiff
path: root/user/plasma-vault/fix-crash.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/plasma-vault/fix-crash.patch')
-rw-r--r--user/plasma-vault/fix-crash.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/user/plasma-vault/fix-crash.patch b/user/plasma-vault/fix-crash.patch
new file mode 100644
index 000000000..306b7dfe2
--- /dev/null
+++ b/user/plasma-vault/fix-crash.patch
@@ -0,0 +1,26 @@
+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
+