From bcb985adda403f1af41ce2bd248fd75302ae6fb6 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Sat, 9 Mar 2019 15:27:49 +0000 Subject: [PATCH] Use ERR_SLAVE_DEFINED --- kio/kiokdeconnect.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kio/kiokdeconnect.cpp b/kio/kiokdeconnect.cpp index 042736889..05c10acca 100644 --- a/kio/kiokdeconnect.cpp +++ b/kio/kiokdeconnect.cpp @@ -66,7 +66,7 @@ KIO::Error toKioError(const QDBusError::ErrorType type) case QDBusError::TimedOut: return KIO::ERR_SERVER_TIMEOUT; default: - return KIO::ERR_INTERNAL; + return KIO::ERR_SLAVE_DEFINED; }; }; @@ -143,7 +143,7 @@ void KioKdeconnect::listDevice(const QString& device) } if (!mountreply.value()) { - error(KIO::ERR_COULD_NOT_MOUNT, interface.getMountError()); + error(KIO::ERR_SLAVE_DEFINED, interface.getMountError()); return; }