From 8f60881dcf4d27fc6faf80a1a3a213c1466492ee Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Tue, 1 Jun 2010 11:36:26 +0200 Subject: No history back action enabled when history is empty BUG:239863 --- src/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); -- cgit v1.2.1