diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-06-01 11:36:26 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-06-01 11:36:26 +0200 |
commit | 8f60881dcf4d27fc6faf80a1a3a213c1466492ee (patch) | |
tree | a2f7136c298ba42a02923fa7750b213fc4e1bf12 /src | |
parent | Fix loading url path on startup arguments (diff) | |
download | rekonq-8f60881dcf4d27fc6faf80a1a3a213c1466492ee.tar.xz |
No history back action enabled when history is empty
BUG:239863
Diffstat (limited to 'src')
-rw-r--r-- | src/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index dc29d2eb..7133f09e 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -659,7 +659,7 @@ void MainWindow::updateActions() bool rekonqPage = currentTab()->page()->isOnRekonqPage(); QAction *historyBackAction = actionByName(KStandardAction::name(KStandardAction::Back)); - if( rekonqPage ) + if( rekonqPage && currentTab()->view()->history()->count() > 0 ) historyBackAction->setEnabled(true); else historyBackAction->setEnabled(currentTab()->view()->history()->canGoBack()); |