diff options
| author | David Faure <[email protected]> | 2007-03-26 23:04:43 +0000 |
|---|---|---|
| committer | David Faure <[email protected]> | 2007-03-26 23:04:43 +0000 |
| commit | 85bc196887fbed01187e3830cd28c2500cb01cb2 (patch) | |
| tree | 98cde59002e2e1214e61a328c253ba58546bb532 /src/dolphinmainwindow.cpp | |
| parent | c6bc5511a8ba05d8f44217b404d615d4d56bb53f (diff) | |
Ported to KBookmarkManager::closestBookmark - which even solves another TODO about code duplication.
Improved urlnavigator API to avoid exposing the full QList (api independent from implementation now).
svn path=/trunk/KDE/kdebase/apps/; revision=646954
Diffstat (limited to 'src/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index ebf8a3f82..e86ad13fa 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -1348,11 +1348,10 @@ void DolphinMainWindow::setupDockWidgets() void DolphinMainWindow::updateHistory()
{
int index = 0;
- const QList<UrlNavigator::HistoryElem> list = m_activeView->urlHistory(index);
QAction* backAction = actionCollection()->action("go_back");
if (backAction != 0) {
- backAction->setEnabled(index < static_cast<int>(list.count()) - 1);
+ backAction->setEnabled(index < m_activeView->urlNavigator()->historySize() - 1);
}
QAction* forwardAction = actionCollection()->action("go_forward");
|
