[LyX/master] GuiCitation: consider filter on dialog creation (#12869)

Juergen Spitzmueller spitz at lyx.org
Fri Aug 11 08:50:11 UTC 2023


commit a03c442a62fdd3aff7a6838d7ff6dae6d8d15aa1
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Fri Aug 11 12:04:26 2023 +0200

    GuiCitation: consider filter on dialog creation (#12869)
---
 src/frontends/qt/GuiCitation.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/frontends/qt/GuiCitation.cpp b/src/frontends/qt/GuiCitation.cpp
index c5fa266..de39ce7 100644
--- a/src/frontends/qt/GuiCitation.cpp
+++ b/src/frontends/qt/GuiCitation.cpp
@@ -826,6 +826,10 @@ void GuiCitation::init()
 
 	buttonBox->button(QDialogButtonBox::Apply)->setEnabled(false);
 	buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
+
+	// apply filter
+	if (!filter_->text().isEmpty())
+		findText(filter_->text(), true);
 }
 
 


More information about the lyx-cvs mailing list