diff options
author | ConfuSomu | 2024-01-05 00:03:13 +0100 |
---|---|---|
committer | ConfuSomu | 2024-01-05 00:03:13 +0100 |
commit | 6db1c2645d6c5b7f8e4b13b8f58b4673ea5457f3 (patch) | |
tree | 4cedc069142decf396b75c86631d286bb7489883 /src/finddialog.h | |
parent | 2659a72cc70c72a7b3d1fd3a349db7c30e9a63ea (diff) | |
download | ActorViewer-6db1c2645d6c5b7f8e4b13b8f58b4673ea5457f3.tar ActorViewer-6db1c2645d6c5b7f8e4b13b8f58b4673ea5457f3.tar.gz ActorViewer-6db1c2645d6c5b7f8e4b13b8f58b4673ea5457f3.zip |
Rerun search if new archive is opened
Diffstat (limited to 'src/finddialog.h')
-rw-r--r-- | src/finddialog.h | 4 |
1 files changed, 3 insertions, 1 deletions
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(); |