[LyX/2.5.x] Auto-select filter text in GuiCitation (#13333)
Pavel Sanda <[email protected]>
| Newsgroups | gmane.editors.lyx.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 3818f7a0858dc2dccbd5415953acf0f5d082784d Author: Pavel Sanda <[email protected]> Date: Tue Aug 18 02:31:30 2026 +0200 Auto-select filter text in GuiCitation (#13333) Backporting cffc9ff, patch from Guillaume. --- src/frontends/qt/GuiCitation.cpp | 11 +++++++---- status.25x | 1 + 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/frontends/qt/GuiCitation.cpp b/src/frontends/qt/GuiCitation.cpp index 509637e326..0b9a34a515 100644 --- a/src/frontends/qt/GuiCitation.cpp +++ b/src/frontends/qt/GuiCitation.cpp @@ -798,8 +798,9 @@ void GuiCitation::init() updateControls(bi); updateStyles(bi); if (selected_model_.rowCount()) { + // Show the description for the first selected citation if it exists + // (#6486) selectedLV->blockSignals(true); - selectedLV->setFocus(); selectedLV->selectRow(0); selectedLV->blockSignals(false); @@ -816,15 +817,17 @@ void GuiCitation::init() citationStyleCO->setCurrentIndex(i); citationStyleCO->blockSignals(false); updateFormatting(citeStyles_[size_type(i)]); - } else - availableLV->setFocus(); + } buttonBox->button(QDialogButtonBox::Apply)->setEnabled(false); buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false); // apply filter - if (!filter_->text().isEmpty()) + if (!filter_->text().isEmpty()) { findText(filter_->text(), true); + } + + filter_->selectAll(); } diff --git a/status.25x b/status.25x index 16d432e76d..40f865a1b4 100644 --- a/status.25x +++ b/status.25x @@ -27,6 +27,7 @@ What's new * USER INTERFACE +- Fix autoselect filter on Citation dialog (bug #13333). * DOCUMENTATION AND LOCALIZATION -- lyx-cvs mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-cvs