diff options
| author | Peter Penz <[email protected]> | 2007-04-08 21:07:41 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-04-08 21:07:41 +0000 |
| commit | 714d08f17c9135704cf48534823611cb015590a0 (patch) | |
| tree | fcef6b2a31d0d3fc291c24634a198a6725f8c729 /src/dolphinmainwindow.cpp | |
| parent | e00bcf4ee7b7d315b4ed25cc2dfb6a9c3fb8ad61 (diff) | |
adaptions to the cleaned up interface of KUrlNavigator
svn path=/trunk/KDE/kdebase/apps/; revision=651675
Diffstat (limited to 'src/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index dc23b5573..6b5bd9d9e 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -1351,11 +1351,12 @@ void DolphinMainWindow::setupDockWidgets() void DolphinMainWindow::updateHistory() { - int index = 0; + const KUrlNavigator* urlNavigator = m_activeView->urlNavigator(); + const int index = urlNavigator->historyIndex(); QAction* backAction = actionCollection()->action("go_back"); if (backAction != 0) { - backAction->setEnabled(index < m_activeView->urlNavigator()->historySize() - 1); + backAction->setEnabled(index < urlNavigator->historySize() - 1); } QAction* forwardAction = actionCollection()->action("go_forward"); |
