]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinmainwindow.cpp
Ported to KBookmarkManager::closestBookmark - which even solves another TODO about...
[dolphin.git] / src / dolphinmainwindow.cpp
index 775ef9864f75a3fd6396eb5fe06a4260cf6c1461..e86ad13fac289f7fd62b5699be0e774ea6fb802b 100644 (file)
@@ -1348,11 +1348,10 @@ void DolphinMainWindow::setupDockWidgets()
 void DolphinMainWindow::updateHistory()\r
 {\r
     int index = 0;\r
-    const QLinkedList<UrlNavigator::HistoryElem> list = m_activeView->urlHistory(index);\r
 \r
     QAction* backAction = actionCollection()->action("go_back");\r
     if (backAction != 0) {\r
-        backAction->setEnabled(index < static_cast<int>(list.count()) - 1);\r
+        backAction->setEnabled(index < m_activeView->urlNavigator()->historySize() - 1);\r
     }\r
 \r
     QAction* forwardAction = actionCollection()->action("go_forward");\r