[Uml-devel] KDE_3_4_BRANCH: kdesdk/umbrello/umbrello
Ben Burton
bab at debian.org
Thu Mar 17 14:22:38 UTC 2005
CVS commit by benb:
Backport fix for incorrect behaviour when moving items around in the logical tree view. See KDE #57667, Debian #296433.
M +4 -3 umllistview.cpp 1.146.2.2
--- kdesdk/umbrello/umbrello/umllistview.cpp #1.146.2.1:1.146.2.2
@@ -1182,8 +1182,9 @@ UMLListViewItem * UMLListView::moveObjec
void UMLListView::slotDropped(QDropEvent* de, QListViewItem* /* parent */, QListViewItem* item) {
+ item = (UMLListViewItem *)currentItem();
if(!item) {
- //kdDebug() << "UMLListView::slotDropped: item is NULL - setting to currentItem()"
- // << endl;
- item = currentItem();
+ kdDebug() << "UMLListView::slotDropped: item is NULL - doing nothing"
+ << endl;
+ return;
}
UMLDrag::LvTypeAndID_List srcList;
More information about the umbrello-devel
mailing list