From 4e18c888b159af48bed5ef5f1ebef80e48cd494a Mon Sep 17 00:00:00 2001 From: "Felix (xq) Queißner" Date: Mon, 8 Mar 2021 00:46:03 +0100 Subject: New HTML rendering via HTML code generation. --- src/mainwindow.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index dc87575..ea34b74 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -415,7 +415,6 @@ void MainWindow::on_outline_view_clicked(const QModelIndex &index) { BrowserTab * tab = this->curTab(); if(tab != nullptr) { - auto anchor = tab->outline.getAnchor(index); if(not anchor.isEmpty()) { tab->scrollToAnchor(anchor); @@ -791,3 +790,8 @@ void MainWindow::on_history_view_activated(const QModelIndex &index) tab->navigateBack(index); } } + +void MainWindow::on_outline_view_activated(const QModelIndex &index) +{ + this->on_outline_view_clicked(index); +} -- cgit v1.2.3