summaryrefslogtreecommitdiff
path: root/user/plasma-vault/fix-crash.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-04-05 08:03:15 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-04-05 08:03:15 +0000
commit87fa95cb12975c66546c1f575475f2b861ffe320 (patch)
treeb147c9ce74c7ff7bfee7da24fde64e7f1bd58efc /user/plasma-vault/fix-crash.patch
parent45c7d18ee3236dae130150d80a32e4a37710cd24 (diff)
downloadpackages-87fa95cb12975c66546c1f575475f2b861ffe320.tar.gz
packages-87fa95cb12975c66546c1f575475f2b861ffe320.tar.bz2
packages-87fa95cb12975c66546c1f575475f2b861ffe320.tar.xz
packages-87fa95cb12975c66546c1f575475f2b861ffe320.zip
user/[KDE Plasma]: Update to 5.18.4.1
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
+