[Uml-devel] kdesdk/umbrello/umbrello

Jonathan Riddell jri at jriddell.org
Wed Oct 29 05:59:06 UTC 2003


CVS commit by jriddell: 

Call setModified() after adding an association so undo/redo work and
it prompts to save file.


  M +1 -0      umlview.cpp   1.109
  M +3 -4      umlwidget.cpp   1.61


--- kdesdk/umbrello/umbrello/umlview.cpp  #1.108:1.109
@@ -2021,4 +2021,5 @@ bool UMLView::setAssoc(UMLWidget *pWidge
                 AssociationWidget *temp = new AssociationWidget(this, widgetA, type, widgetB);
                 addAssocInViewAndDoc(temp);
+                m_pDoc->setModified();
         } else {
                 KMessageBox::error(0, i18n("Incorrect use of associations."), i18n("Association Error"));

--- kdesdk/umbrello/umbrello/umlwidget.cpp  #1.60:1.61
@@ -370,7 +370,6 @@ void UMLWidget::mouseReleaseEvent(QMouse
         }
 
-        if ( me->button() == LeftButton && (me->stateAfter() != ShiftButton
-                                                                                                                                || me->stateAfter() != ControlButton) )
-        {
+        if ( me->button() == LeftButton &&
+             (me->stateAfter() != ShiftButton || me->stateAfter() != ControlButton) )  {
                 m_pView->setAssoc(this);
         }






More information about the umbrello-devel mailing list