diff options
| author | Peter Penz <[email protected]> | 2010-07-08 19:46:56 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2010-07-08 19:46:56 +0000 |
| commit | 42ba5dfd4b88bf2574d9edde60c7b57d87881ea5 (patch) | |
| tree | 746e6c4b58a21ef1cc63d98175ede3a000ffa0f8 /src/dolphinmainwindow.cpp | |
| parent | c5157d36bacf4adde12457b18deeb02e7921abbf (diff) | |
Forward port of SVN commit 1147596: Skip redirection URLs when going back or forward in history (otherwise going
back won't be possible for the user, as a redirection will occur again).
CCBUG: 212293
svn path=/trunk/KDE/kdebase/apps/; revision=1147597
Diffstat (limited to 'src/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 4eef2fad5..f6f4e5eee 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -830,7 +830,15 @@ void DolphinMainWindow::replaceLocation() void DolphinMainWindow::goBack() { clearStatusBar(); - m_activeViewContainer->urlNavigator()->goBack(); + + KUrlNavigator* urlNavigator = m_activeViewContainer->urlNavigator(); + urlNavigator->goBack(); + + if (urlNavigator->locationState().isEmpty()) { + // An empty location state indicates a redirection URL, + // which must be skipped too + urlNavigator->goBack(); + } } void DolphinMainWindow::goForward() |
