mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-28 06:49:43 +00:00
* 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:
parent
635ae3af3b
commit
e3699e1a47
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user