* src/frontends/qt4/QBibtexDialog.C: sanitize button behaviour (bug 2895)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16596 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2007-01-08 09:20:18 +00:00
parent 34e341f366
commit b474cb3353
3 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2007-01-05 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* QBibtexDialog.C: sanitize button behaviour (bug 2895).
2007-01-05 Jürgen Spitzmüller <j.spitzmueller@gmx.de> 2007-01-05 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* QCitationDialog.C: Disallow pressing the add button in the citation * QCitationDialog.C: Disallow pressing the add button in the citation

View File

@ -55,7 +55,7 @@ QBibtexDialog::QBibtexDialog(QBibtex * form)
bcview->setOK(add_->addPB); bcview->setOK(add_->addPB);
bcview->setCancel(add_->closePB); bcview->setCancel(add_->closePB);
add_->bibED->setValidator(new PathValidator(false, add_->bibED)); add_->bibED->setValidator(new PathValidator(true, add_->bibED));
addCheckedLineEdit(add_bc_.view(), add_->bibED, 0); addCheckedLineEdit(add_bc_.view(), add_->bibED, 0);
connect(add_->bibED, SIGNAL(textChanged(const QString&)), connect(add_->bibED, SIGNAL(textChanged(const QString&)),
@ -66,7 +66,7 @@ QBibtexDialog::QBibtexDialog(QBibtex * form)
this, SLOT(addDatabase())); this, SLOT(addDatabase()));
connect(add_->bibLB, SIGNAL(selected(QListBoxItem *)), connect(add_->bibLB, SIGNAL(selected(QListBoxItem *)),
add_, SLOT(accept())); add_, SLOT(accept()));
connect(add_->bibLB, SIGNAL(currentChanged(QListBoxItem *)), connect(add_->bibLB, SIGNAL(highlighted(int)),
this, SLOT(availableChanged())); this, SLOT(availableChanged()));
connect(add_->browsePB, SIGNAL(clicked()), connect(add_->browsePB, SIGNAL(clicked()),
this, SLOT(browseBibPressed())); this, SLOT(browseBibPressed()));
@ -142,8 +142,8 @@ void QBibtexDialog::browseBibPressed()
void QBibtexDialog::addPressed() void QBibtexDialog::addPressed()
{ {
add_->exec();
add_bc_.valid(false); add_bc_.valid(false);
add_->exec();
} }
@ -178,6 +178,7 @@ void QBibtexDialog::addDatabase()
void QBibtexDialog::deletePressed() void QBibtexDialog::deletePressed()
{ {
databaseLB->removeItem(databaseLB->currentItem()); databaseLB->removeItem(databaseLB->currentItem());
form_->changed();
} }
@ -190,7 +191,7 @@ void QBibtexDialog::databaseChanged()
void QBibtexDialog::availableChanged() void QBibtexDialog::availableChanged()
{ {
form_->changed(); add_bc_.valid(true);
} }

View File

@ -164,6 +164,8 @@ What's new
- reset the language when dissolving an ERT inset (bug 2978) - reset the language when dissolving an ERT inset (bug 2978)
- Sanitize button enabling in the bibtex dialog [qt only] (bug 2895)
* Build/installation: * Build/installation:
- Allow autoconf 2.60 and 2.61 for building. - Allow autoconf 2.60 and 2.61 for building.