summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-06-01 11:36:26 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-06-01 11:36:26 +0200
commit8f60881dcf4d27fc6faf80a1a3a213c1466492ee (patch)
treea2f7136c298ba42a02923fa7750b213fc4e1bf12 /src/mainwindow.cpp
parentFix loading url path on startup arguments (diff)
downloadrekonq-8f60881dcf4d27fc6faf80a1a3a213c1466492ee.tar.xz
No history back action enabled when history is empty
BUG:239863
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp2
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());