From b917b6099ab8477488f0f352339aa6fca2235c36 Mon Sep 17 00:00:00 2001 From: "Felix (xq) Queißner" Date: Fri, 5 Jun 2020 10:44:38 +0200 Subject: Starts to implement navigation history. --- mainwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mainwindow.cpp') 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); } } -- cgit v1.2.3