diff --git a/smb/kio_smb_internal.h b/smb/kio_smb_internal.h --- a/smb/kio_smb_internal.h +++ b/smb/kio_smb_internal.h @@ -84,12 +84,7 @@ void setPass( const QString& _txt ) { QUrl::setPassword(_txt); updateCache(); } void setUser( const QString& _txt ) { QUrl::setUserName(_txt); updateCache(); } void setHost( const QString& _txt ) { QUrl::setHost(_txt); updateCache(); } - void setFileName(const QString& _txt) - { - QUrl::adjusted(QUrl::RemoveFilename); - QUrl::setPath(path() + _txt); - updateCache(); - } + void setPath( const QString& _txt ) { QUrl::setPath(_txt); updateCache(); } /** * Returns the workgroup if it given in url diff --git a/smb/kio_smb_internal.cpp b/smb/kio_smb_internal.cpp --- a/smb/kio_smb_internal.cpp +++ b/smb/kio_smb_internal.cpp @@ -140,7 +140,7 @@ { if (m_type == SMBURLTYPE_SHARE_OR_PATH && !fileName().isEmpty()) { SMBUrl url (*this); - url.setFileName(fileName() + QLatin1String(".part")); + url.setPath(path() + QLatin1String(".part")); return url; }