From 6db1c2645d6c5b7f8e4b13b8f58b4673ea5457f3 Mon Sep 17 00:00:00 2001 From: ConfuSomu Date: Fri, 5 Jan 2024 00:03:13 +0100 Subject: Rerun search if new archive is opened --- src/finddialog.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/finddialog.h') diff --git a/src/finddialog.h b/src/finddialog.h index c26f8fd..38a58f2 100644 --- a/src/finddialog.h +++ b/src/finddialog.h @@ -13,6 +13,8 @@ class FindDialog : public QDialog { public: FindDialog(QWidget *parent = nullptr); ~FindDialog(); + // Force doing again the search, useful if list_widget items have changed + void force_research(); public slots: void set_search_text(const QString &text, bool search_immediately = false); @@ -42,7 +44,7 @@ private: // This is used with the spin box to avoid having repeated value changes due to the on_spinBox_valueChanged slot bool value_changed_processed = false; - void init_search(); + void init_search(bool force = false); void update_status(); void select_match(); bool has_search_changed(); -- cgit v1.2.3-54-g00ecf