]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/QCitationDialog.C
Switch from SigC signals to boost::signals
[lyx.git] / src / frontends / qt2 / QCitationDialog.C
index 49e250594638afc32af5a5cc5f9643b20d9700ce..cad9ab0ce91692249732dd4d3ddf3087f3686035 100644 (file)
@@ -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<string>::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;
        }