summaryrefslogtreecommitdiff
path: root/src/ui/sidebarwidget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/sidebarwidget.c')
-rw-r--r--src/ui/sidebarwidget.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c
index 0477adec..b84ae65e 100644
--- a/src/ui/sidebarwidget.c
+++ b/src/ui/sidebarwidget.c
@@ -520,11 +520,16 @@ static iBool processEvent_SidebarWidget_(iSidebarWidget *d, const SDL_Event *ev)
520 } 520 }
521 arrange_Widget(w->parent); 521 arrange_Widget(w->parent);
522 updateSize_DocumentWidget(document_App()); 522 updateSize_DocumentWidget(document_App());
523 if (isVisible_Widget(w)) {
524 updateItems_SidebarWidget_(d);
525 scrollOffset_ListWidget(d->list, 0);
526 }
523 refresh_Widget(w->parent); 527 refresh_Widget(w->parent);
524 return iTrue; 528 return iTrue;
525 } 529 }
526 else if (equal_Command(cmd, "tabs.changed") || equal_Command(cmd, "document.changed")) { 530 else if (equal_Command(cmd, "tabs.changed") || equal_Command(cmd, "document.changed")) {
527 updateItems_SidebarWidget_(d); 531 updateItems_SidebarWidget_(d);
532 scrollOffset_ListWidget(d->list, 0);
528 } 533 }
529 else if (equal_Command(cmd, "bookmark.copy")) { 534 else if (equal_Command(cmd, "bookmark.copy")) {
530 const iSidebarItem *item = d->menuItem; 535 const iSidebarItem *item = d->menuItem;