Summary: | rekonq crashes when going back without available history (PDF View) | ||
---|---|---|---|
Product: | [Unmaintained] rekonq | Reporter: | Fabian Köster <f.koester> |
Component: | general | Assignee: | Andrea Diamantini <adjam7> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | pano9000 |
Priority: | NOR | ||
Version First Reported In: | 0.4.90 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Bug Depends on: | |||
Bug Blocks: | 237890 |
Description
Fabian Köster
2010-05-28 14:45:15 UTC
Application: rekonq (0.4.90) KDE Platform Version: 4.4.3 (KDE 4.4.3) Qt Version: 4.6.2 Operating System: Linux 2.6.32-gentoo-r7 i686 I can confirm this commit 8f60881dcf4d27fc6faf80a1a3a213c1466492ee Author: Andrea Diamantini <adjam7@gmail.com> Date: Tue Jun 1 11:36:26 2010 +0200 No history back action enabled when history is empty BUG:239863 diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index dc29d2e..7133f09 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()); |