[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [umbrello] umbrello/dialogs/pages: Keep documentation in class attribute and operation list page in 
From:       Ralf Habacker <ralf.habacker () freenet ! de>
Date:       2015-02-28 22:49:35
Message-ID: E1YRqCV-0006V0-Vb () scm ! kde ! org
[Download RAW message or body]

Git commit 0f1df5fd8a0ebfdb10be2db4a8c8de360f1cd967 by Ralf Habacker.
Committed on 28/02/2015 at 22:48.
Pushed by habacker into branch 'master'.

Keep documentation in class attribute and operation list page in sync with related \
class attribute or operation dialog.

M  +4    -2    umbrello/dialogs/pages/classifierlistpage.cpp

http://commits.kde.org/umbrello/0f1df5fd8a0ebfdb10be2db4a8c8de360f1cd967

diff --git a/umbrello/dialogs/pages/classifierlistpage.cpp \
b/umbrello/dialogs/pages/classifierlistpage.cpp index 178a72f..ca8a488 100644
--- a/umbrello/dialogs/pages/classifierlistpage.cpp
+++ b/umbrello/dialogs/pages/classifierlistpage.cpp
@@ -678,6 +678,7 @@ void ClassifierListPage::slotDoubleClick(QListWidgetItem* item)
     m_bSigWaiting = true;
     if (listItem->showPropertiesDialog(this)) {
         m_pItemListLB->item(m_pItemListLB->row(item))->setText(listItem->toString(Uml::SignatureType::SigNoVis));
 +        m_docTE->setText(listItem->doc());
     }
 }
 
@@ -720,9 +721,10 @@ void ClassifierListPage::slotNewListItem()
     saveCurrentItemDocumentation();
     m_bSigWaiting = true;
     m_pLastObjectCreated = Object_Factory::createChildObject(m_pClassifier, \
                m_itemType);
-    if (m_pLastObjectCreated == NULL) {
+    if (m_pLastObjectCreated)
+        m_docTE->setText(m_pLastObjectCreated->doc());
+    else
         m_bSigWaiting = false;
-    }
 }
 
 /**


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic