X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt2%2FQCitationDialog.C;h=cad9ab0ce91692249732dd4d3ddf3087f3686035;hb=1e394731004491d04abe436112b5a89521bbd19a;hp=49e250594638afc32af5a5cc5f9643b20d9700ce;hpb=a5c39240f7b6641f2ebf38af9ced327600f14622;p=lyx.git diff --git a/src/frontends/qt2/QCitationDialog.C b/src/frontends/qt2/QCitationDialog.C index 49e2505946..cad9ab0ce9 100644 --- a/src/frontends/qt2/QCitationDialog.C +++ b/src/frontends/qt2/QCitationDialog.C @@ -61,14 +61,14 @@ QCitationDialog::~QCitationDialog() void QCitationDialog::slotBibSelected(int sel) { slotBibHighlighted(sel); - - if (form_->readOnly()) + + if (form_->readOnly()) return; - + slotAddClicked(); } - + void QCitationDialog::slotBibHighlighted(int sel) { biblio::InfoMap const & theMap = form_->controller().bibkeysInfo(); @@ -264,22 +264,22 @@ void QCitationDialog::doFind(biblio::Direction dir) start -= 1; bool const caseSensitive = searchCaseCB->isChecked(); - + vector::const_iterator cit = biblio::searchKeys(theMap, form_->bibkeys, str, start, type, dir, caseSensitive); - // FIXME: should work ... + // FIXME: should work ... if (cit == form_->bibkeys.end()) { // not found. let's loop round if (dir == biblio::FORWARD) start = form_->bibkeys.begin(); else start = form_->bibkeys.end(); - + cit = biblio::searchKeys(theMap, form_->bibkeys, str, start, type, dir, caseSensitive); - + if (cit == form_->bibkeys.end()) return; }