diff --git a/src/ui/mainwindow.cc b/src/ui/mainwindow.cc index 30311234..ae32dc1e 100644 --- a/src/ui/mainwindow.cc +++ b/src/ui/mainwindow.cc @@ -1834,9 +1834,11 @@ void MainWindow::closeCurrentTab() void MainWindow::closeAllTabs() { - while ( ui.tabWidget->count() > 0 ) { + while ( ui.tabWidget->count() > 1 ) closeCurrentTab(); - } + + // close last tab + closeCurrentTab(); } void MainWindow::closeRestTabs() @@ -1876,13 +1878,19 @@ void MainWindow::switchToPrevTab() void MainWindow::backClicked() { + GD_DPRINTF( "Back\n" ); + ArticleView * view = getCurrentArticleView(); + view->back(); } void MainWindow::forwardClicked() { + GD_DPRINTF( "Forward\n" ); + ArticleView * view = getCurrentArticleView(); + view->forward(); }