diff --git a/smb/kio_smb_mount.cpp b/smb/kio_smb_mount.cpp --- a/smb/kio_smb_mount.cpp +++ b/smb/kio_smb_mount.cpp @@ -67,9 +67,9 @@ smburl.setHost(host); smburl.setPath('/' + share); - if ( checkPassword(smburl) != KJob::NoError ) - { - finished(); + const int passwordError = checkPassword(smburl); + if (passwordError != KJob::NoError && passwordError != KIO::ERR_USER_CANCELED) { + error(passwordError, smburl.toString()); return; }