aboutsummaryrefslogtreecommitdiff
path: root/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r--mainwindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp
index ae29881..4936c4a 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -71,11 +71,15 @@ void MainWindow::on_browser_tabs_currentChanged(int index)
if(tab != nullptr) {
this->ui->outline_view->setModel(&tab->outline);
this->ui->outline_view->expandAll();
+
+ this->ui->history_view->setModel(&tab->history);
} else {
this->ui->outline_view->setModel(nullptr);
+ this->ui->history_view->setModel(nullptr);
}
} else {
this->ui->outline_view->setModel(nullptr);
+ this->ui->history_view->setModel(nullptr);
}
}