From 56a64ae4c5c4cf3fb567445a1bcec0f3a9db143c Mon Sep 17 00:00:00 2001 From: ConfuSomu Date: Wed, 2 Aug 2023 02:34:01 +0200 Subject: Initialize find dialog with text from main window Properly emit the text that was entered in the search bar before the find dialog was opened. This makes sure that it is queried as expected by the user. --- src/mainwindow.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mainwindow.h') diff --git a/src/mainwindow.h b/src/mainwindow.h index fedbc9d..162e6bf 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -30,7 +30,7 @@ public slots: void set_search_text(const QString &text); signals: - void search_text_changed(const QString &text); + void search_text_changed(const QString &text, bool search_immediately = false); private slots: void on_actionOpen_triggered(bool checked); -- cgit v1.2.3-54-g00ecf