Fix loop search in cite dialog. Also info update fix.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4743 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Edwin Leuven 2002-07-22 15:30:24 +00:00
parent 7a3ef7f50f
commit da2d5f9053
3 changed files with 13 additions and 12 deletions

View File

@ -1,3 +1,8 @@
2002-07-22 Edwin Leuven <leuven@fee.uva.nl>
* QCitationDialog.C: fix loop search and info update after selecting
* TODO: remove this is issue
2002-07-22 Edwin Leuven <leuven@fee.uva.nl>
* ui/QBibtexDialog.ui: style browser

View File

@ -156,6 +156,7 @@ void QCitationDialog::slotAddClicked()
int const n = int(form_->citekeys.size());
citeLB->setSelected(n - 1, true);
slotBibHighlighted(sel);
form_->setBibButtons(QCitation::OFF);
form_->setCiteButtons(QCitation::ON);
form_->changed();
@ -265,23 +266,22 @@ void QCitationDialog::doFind(biblio::Direction dir)
vector<string>::const_iterator cit =
biblio::searchKeys(theMap, form_->bibkeys, str,
start, type, dir, caseSensitive);
start, type, dir, caseSensitive);
// FIXME: should work ...
// not found. let's loop round
if (cit == form_->bibkeys.end()) {
// not found. let's loop round
if (dir == biblio::FORWARD)
if (dir == biblio::FORWARD) {
start = form_->bibkeys.begin();
else
start = form_->bibkeys.end();
}
else start = form_->bibkeys.end() - 1;
cit = biblio::searchKeys(theMap, form_->bibkeys, str,
start, type, dir, caseSensitive);
start, type, dir, caseSensitive);
if (cit == form_->bibkeys.end())
return;
}
int const found = int(cit - form_->bibkeys.begin());
if (found == sel) {
return;

View File

@ -26,10 +26,6 @@ QAbout
- give good default size
QCitation
- loop round searching not working perhaps ??
QCommandBuffer
- finish off, use listview etc.