diff --git a/src/frontends/qt2/ChangeLog b/src/frontends/qt2/ChangeLog index 5316b32076..dab7e66e59 100644 --- a/src/frontends/qt2/ChangeLog +++ b/src/frontends/qt2/ChangeLog @@ -1,3 +1,8 @@ +2003-04-23 John Levon + + * QCitationDialog.C: close dialog on return in listbox + (bug 866) + 2003-04-23 John Levon * QPrefs.C: diff --git a/src/frontends/qt2/QCitationDialog.C b/src/frontends/qt2/QCitationDialog.C index bb86b6b99a..960363b5af 100644 --- a/src/frontends/qt2/QCitationDialog.C +++ b/src/frontends/qt2/QCitationDialog.C @@ -56,6 +56,7 @@ QCitationDialog::QCitationDialog(QCitation * form) connect(add_->availableLB, SIGNAL(selected(QListBoxItem *)), this, SLOT(addCitation())); connect(add_->availableLB, SIGNAL(selected(QListBoxItem *)), add_, SLOT(accept())); connect(add_->addPB, SIGNAL(clicked()), this, SLOT(addCitation())); + connect(selectedLB, SIGNAL(returnPressed(QListBoxItem *)), form, SLOT(slotOK())); }