summaryrefslogtreecommitdiff
path: root/Userland/Applications/PDFViewer/SidebarWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Applications/PDFViewer/SidebarWidget.cpp')
-rw-r--r--Userland/Applications/PDFViewer/SidebarWidget.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Applications/PDFViewer/SidebarWidget.cpp b/Userland/Applications/PDFViewer/SidebarWidget.cpp
index a2740f3036..ad97d83cab 100644
--- a/Userland/Applications/PDFViewer/SidebarWidget.cpp
+++ b/Userland/Applications/PDFViewer/SidebarWidget.cpp
@@ -22,6 +22,8 @@ SidebarWidget::SidebarWidget()
m_outline_tree_view = outline_container.add<GUI::TreeView>();
m_outline_tree_view->set_activates_on_selection(true);
+ m_outline_tree_view->set_should_fill_selected_rows(true);
+ m_outline_tree_view->set_selection_behavior(GUI::AbstractView::SelectionBehavior::SelectRows);
auto& thumbnails_container = tab_bar.add_tab<GUI::Widget>("Thumbnails");
thumbnails_container.set_layout<GUI::VerticalBoxLayout>();