From 714d08f17c9135704cf48534823611cb015590a0 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 8 Apr 2007 21:07:41 +0000 Subject: adaptions to the cleaned up interface of KUrlNavigator svn path=/trunk/KDE/kdebase/apps/; revision=651675 --- src/dolphinmainwindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/dolphinmainwindow.cpp') 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"); -- cgit v1.3