[Uml-devel] KDE/kdesdk/umbrello/umbrello

Sharan Rao sharanrao at gmail.com
Mon Mar 31 21:41:12 UTC 2008


SVN commit 792362 by sharan:

Bug fix. Renaming a list view item should also rename the corresponding object, canvas widget etc.


 M  +2 -1      umllistviewitem.cpp  


--- trunk/KDE/kdesdk/umbrello/umbrello/umllistviewitem.cpp #792361:792362
@@ -309,6 +309,7 @@
 
 void UMLListViewItem::okRename(int col)
 {
+    QString oldText = m_Label; // copy old name
     Q3ListViewItem::okRename(col);
     UMLDoc* doc = s_pListView->getDocument();
     if (m_bCreating) {
@@ -324,7 +325,7 @@
         return;
     }
     QString newText = text(col);
-    if (newText == m_Label) {
+    if (newText == oldText) {
         return;
     }
     if (newText.isEmpty()) {




More information about the umbrello-devel mailing list