aboutsummaryrefslogtreecommitdiff
path: root/mainwindow.cpp
diff options
context:
space:
mode:
authorFelix (xq) Queißner <git@mq32.de>2020-06-05 11:06:50 +0200
committerFelix (xq) Queißner <git@mq32.de>2020-06-05 11:06:50 +0200
commit7e7ac47308d88aa3a67836937a6888b7b3d90d56 (patch)
tree34515761fe733601485948afa17aae05057237df /mainwindow.cpp
parentb917b6099ab8477488f0f352339aa6fca2235c36 (diff)
downloadkristall-7e7ac47308d88aa3a67836937a6888b7b3d90d56.tar.gz
Adds option to navigate back to an older item
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r--mainwindow.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp
index 4936c4a..48e7f54 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -94,3 +94,11 @@ void MainWindow::on_browser_tabs_tabCloseRequested(int index)
{
delete this->ui->browser_tabs->widget(index);
}
+
+void MainWindow::on_history_view_doubleClicked(const QModelIndex &index)
+{
+ BrowserTab * tab = qobject_cast<BrowserTab*>(this->ui->browser_tabs->currentWidget());
+ if(tab != nullptr) {
+ tab->navigateBack(index);
+ }
+}