* GuiBibtex.cpp:

- some more tweaks.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22522 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-01-12 15:41:40 +00:00
parent 635ae3af3b
commit e3699e1a47

View File

@ -227,6 +227,7 @@ void GuiBibtex::addDatabase()
}
}
databaseChanged();
changed();
}
@ -236,6 +237,7 @@ void GuiBibtex::deletePressed()
QListWidgetItem *cur = databaseLW->takeItem(databaseLW->currentRow());
if (cur) {
delete cur;
databaseChanged();
changed();
}
}
@ -244,8 +246,8 @@ void GuiBibtex::deletePressed()
void GuiBibtex::upPressed()
{
int row = databaseLW->currentRow();
QListWidgetItem *cur;
databaseLW->insertItem(row - 1, cur = databaseLW->takeItem(row));
QListWidgetItem *cur = databaseLW->takeItem(row);
databaseLW->insertItem(row - 1, cur);
databaseLW->setCurrentItem(cur);
changed();
}
@ -254,8 +256,8 @@ void GuiBibtex::upPressed()
void GuiBibtex::downPressed()
{
int row = databaseLW->currentRow();
QListWidgetItem *cur;
databaseLW->insertItem(row + 1, cur = databaseLW->takeItem(row));
QListWidgetItem *cur = databaseLW->takeItem(row);
databaseLW->insertItem(row + 1, cur);
databaseLW->setCurrentItem(cur);
changed();
}