From 573ac408096b538b8b82a311a7fba5b6e541059a Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Sat, 9 Mar 2019 14:24:29 +0000 Subject: [PATCH] [sftp] Also report desktop side errors via KIO --- plugins/sftp/sftpplugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/sftp/sftpplugin.cpp b/plugins/sftp/sftpplugin.cpp index 3a071f39b..9340e5ff8 100644 --- a/plugins/sftp/sftpplugin.cpp +++ b/plugins/sftp/sftpplugin.cpp @@ -146,7 +146,6 @@ bool SftpPlugin::receivePacket(const NetworkPacket& np) remoteDirectories.insert(mountPoint(), i18n("All files")); remoteDirectories.insert(mountPoint() + "/DCIM/Camera", i18n("Camera pictures")); } - return true; } @@ -177,6 +176,7 @@ void SftpPlugin::onUnmounted() void SftpPlugin::onFailed(const QString& message) { + mountError = message; KNotification::event(KNotification::Error, device()->name(), message); unmount();