┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels
diff options
context:
space:
mode:
authorFrank Reininghaus <[email protected]>2013-05-02 19:45:08 +0200
committerFrank Reininghaus <[email protected]>2013-05-02 19:45:08 +0200
commit692e7d4d32c4d459aca3542d4f90d7a5af861fb0 (patch)
tree71dd5650af6ab69615586a57cc0297c42b9ad8c9 /src/panels
parentdbc00fa190b8f8ced61df666266bf836e1f2a1ff (diff)
parentff3b009e68f485a1a65a7535b01eeeb7128463d2 (diff)
Merge remote-tracking branch 'origin/KDE/4.10'
Diffstat (limited to 'src/panels')
-rw-r--r--src/panels/terminal/terminalpanel.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/panels/terminal/terminalpanel.cpp b/src/panels/terminal/terminalpanel.cpp
index 28c6a9383..bfd3002f0 100644
--- a/src/panels/terminal/terminalpanel.cpp
+++ b/src/panels/terminal/terminalpanel.cpp
@@ -31,6 +31,7 @@
#include <KIO/JobUiDelegate>
#include <QBoxLayout>
+#include <QDir>
#include <QShowEvent>
TerminalPanel::TerminalPanel(QWidget* parent) :
@@ -183,8 +184,12 @@ void TerminalPanel::slotKonsolePartCurrentDirectoryChanged(const QString& dir)
{
m_konsolePartCurrentDirectory = dir;
+ // Only change the view URL if 'dir' is different from the current view URL.
+ // Note that the current view URL could also be a symbolic link to 'dir'
+ // -> use QDir::canonicalPath() to check that.
+ const KUrl oldUrl(url());
const KUrl newUrl(dir);
- if (newUrl != url()) {
+ if (newUrl != oldUrl && dir != QDir(oldUrl.path()).canonicalPath()) {
emit changeUrl(newUrl);
}
}