Commit f6a924b3 authored by Ivan Čukić's avatar Ivan Čukić 👁

Make sure we have saved network state before accessing it

BUG:418262
parent 12e82f6c
......@@ -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();
......
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