The redirection from zip to file wasn't appearing in konqueror because zip:/tmp/ != zip:/tmp

-> do comparison without trailing slash.
BUG: 207572

svn path=/trunk/KDE/kdebase/apps/; revision=1026289
This commit is contained in:
David Faure 2009-09-21 11:09:24 +00:00
parent 4e60ae04c2
commit 3a07a3e378

View file

@ -31,6 +31,7 @@
#include <kaboutdata.h>
#include <kactioncollection.h>
#include <kconfiggroup.h>
#include <kdebug.h>
#include <kdirlister.h>
#include <kglobalsettings.h>
#include <kiconloader.h>
@ -433,7 +434,7 @@ void DolphinPart::slotOpenContextMenu(const KFileItem& _item,
void DolphinPart::slotRedirection(const KUrl& oldUrl, const KUrl& newUrl)
{
//kDebug() << oldUrl << newUrl << "currentUrl=" << url();
if (oldUrl == url()) {
if (oldUrl.equals(url(), KUrl::CompareWithoutTrailingSlash /* #207572 */)) {
KParts::ReadOnlyPart::setUrl(newUrl);
const QString prettyUrl = newUrl.pathOrUrl();
emit m_extension->setLocationBarUrl(prettyUrl);