From e3699e1a473d0418433aaeae64b4debf4f8e3fcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Sat, 12 Jan 2008 15:41:40 +0000 Subject: [PATCH] * GuiBibtex.cpp: - some more tweaks. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22522 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiBibtex.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/frontends/qt4/GuiBibtex.cpp b/src/frontends/qt4/GuiBibtex.cpp index ff7035f6e9..eed24435a3 100644 --- a/src/frontends/qt4/GuiBibtex.cpp +++ b/src/frontends/qt4/GuiBibtex.cpp @@ -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(); }