fix QRef dialog

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9610 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2005-02-10 21:47:53 +00:00
parent b7665042ff
commit fb4d88b7b0
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2005-02-10 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* QRefDialog.C (refSelected): insert selected ref to
text widget (this was not possible if there was only
one entry, an empty inset was generated).
2005-01-31 Asger Ottar Alstrup <aalstrup@laerdal.dk>
* QDialogView.h (form): add cast for MSVC.

View File

@ -70,8 +70,12 @@ void QRefDialog::refHighlighted(const QString & sel)
}
void QRefDialog::refSelected(const QString &)
void QRefDialog::refSelected(const QString & sel)
{
if (form_->readOnly())
return;
referenceED->setText(sel);
// <enter> or double click, inserts ref and closes dialog
form_->slotOK();
}