mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
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:
parent
4e60ae04c2
commit
3a07a3e378
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue