aboutsummaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/tab_activity_list.cpp11
-rw-r--r--src/widgets/tab_activity_list.h2
2 files changed, 8 insertions, 5 deletions
diff --git a/src/widgets/tab_activity_list.cpp b/src/widgets/tab_activity_list.cpp
index 8ae046a..faa6138 100644
--- a/src/widgets/tab_activity_list.cpp
+++ b/src/widgets/tab_activity_list.cpp
@@ -99,15 +99,18 @@ void TabActivityList::actionOpen_URL_triggered(bool checked) {
}
}
-void TabActivityList::relist_statuses() {
+void TabActivityList::relist_statuses(bool new_archive_opened) {
if (*data_archive) {
ui->listWidget->clear();
(*data_archive)->update_status_list(view_filters, ui->listWidget);
view_filters_changed = false;
}
- // Cursor overriden only when opening new archive
- if (QApplication::overrideCursor())
- QApplication::restoreOverrideCursor();
+ if (new_archive_opened) {
+ if (QApplication::overrideCursor())
+ QApplication::restoreOverrideCursor();
+ if (find_dialog)
+ find_dialog->force_research();
+ }
}
// Function used to reset filters when we have detected that the "All toots" toggle has been toggled on or shouldn't be toggled anymore
diff --git a/src/widgets/tab_activity_list.h b/src/widgets/tab_activity_list.h
index ae6d426..4e520da 100644
--- a/src/widgets/tab_activity_list.h
+++ b/src/widgets/tab_activity_list.h
@@ -41,7 +41,7 @@ public slots:
void actionOpen_URL_triggered(bool checked);
void menuView_aboutToHide();
- void relist_statuses();
+ void relist_statuses(bool new_archive_opened = false);
void select_list_item(QListWidgetItem* item);
void set_search_text(const QString &text);