[Uml-devel] KDE/kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Sun May 8 08:12:33 UTC 2005
SVN commit 410876 by okellogg:
insertPoint(): Only call setupSelected() when not loading.
M +9 -3 trunk/KDE/kdesdk/umbrello/umbrello/linepath.cpp
--- trunk/KDE/kdesdk/umbrello/umbrello/linepath.cpp #410875:410876
@@ -27,6 +27,8 @@
#include "activitywidget.h"
#include "widget_utils.h"
#include "umlview.h"
+#include "umldoc.h"
+#include "uml.h"
#include "linepath.h"
// using namespace std; CHECK: strange... it compiles without this for me.
@@ -159,6 +161,7 @@
int count = m_LineList.count();
if( count == 0 )
return false;
+ const bool bLoading = UMLApp::app()->getDocument()->loading();
if( count == 1 || pointIndex == 1) {
QCanvasLine * first = m_LineList.first();
@@ -171,7 +174,8 @@
line -> setPen( getPen() );
line -> setVisible( true );
m_LineList.insert( 1, line );
- setupSelected();
+ if (!bLoading)
+ setupSelected();
return true;
}
if( count + 1 == pointIndex ) {
@@ -185,7 +189,8 @@
line -> setPen( getPen() );
line -> setVisible( true );
m_LineList.append( line );
- setupSelected();
+ if (!bLoading)
+ setupSelected();
return true;
}
QCanvasLine * before = m_LineList.at( pointIndex - 1 );
@@ -198,7 +203,8 @@
line -> setPen( getPen() );
line -> setVisible( true );
m_LineList.insert( pointIndex, line );
- setupSelected();
+ if (!bLoading)
+ setupSelected();
return true;
}
More information about the umbrello-devel
mailing list