diff options
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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); +} |
