X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FQCitation.cpp;h=2c0e6219ad0df2793286d7d19902ae635c0528a6;hb=897436efbb9bd641b61467d185a2dfae9839e575;hp=a5c64faca0561ed547321b5dedf2bf748b535ecf;hpb=0e64103f927443835005cda616db620f9b9e007b;p=features.git diff --git a/src/frontends/qt4/QCitation.cpp b/src/frontends/qt4/QCitation.cpp index a5c64faca0..2c0e6219ad 100644 --- a/src/frontends/qt4/QCitation.cpp +++ b/src/frontends/qt4/QCitation.cpp @@ -63,7 +63,7 @@ QCitation::QCitation(Dialog & parent) void QCitation::apply(int const choice, bool const full, bool const force, - QString before, QString after) + QString before, QString after) { if (cited_keys_.isEmpty()) return; @@ -89,7 +89,7 @@ void QCitation::clearSelection() selected_model_.setStringList(cited_keys_); } - + QString QCitation::textBefore() { return toqstr(params()["before"]); @@ -155,7 +155,7 @@ void QCitation::findKey(QString const & str, bool only_keys, Qt::CaseSensitive: Qt::CaseInsensitive; QStringList keys; // If new string (str) contains the last searched one... - if (!last_searched_string.isEmpty() && str.size() > 1 + if (!last_searched_string.isEmpty() && str.size() > 1 && str.contains(last_searched_string, qtcase)) // ... then only search within already found list. keys = available_model_.stringList();