[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdesdk/umbrello/umbrello
From: Oliver Kellogg <okellogg () users ! sourceforge ! net>
Date: 2006-08-31 20:38:02
Message-ID: 1157056682.554233.29153.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 579329 by okellogg:
insertSubmodelAction(): Improve UMLFolder related diagnostics.
M +8 -3 listpopupmenu.cpp
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/listpopupmenu.cpp #579328:579329
@@ -639,11 +639,16 @@
}
UMLListView *listView = UMLApp::app()->getListView();
UMLListViewItem *current = static_cast<UMLListViewItem*>(listView->currentItem());
- UMLFolder *f = dynamic_cast<UMLFolder*>(current->getUMLObject());
+ UMLObject *o = current->getUMLObject();
+ if (o == NULL) {
+ kdError() << "ListPopupMenu::insertSubmodelAction: "
+ << current->getText() << " getUMLObject() returns NULL" << endl;
+ return;
+ }
+ UMLFolder *f = dynamic_cast<UMLFolder*>(o);
if (f == NULL) {
kdError() << "ListPopupMenu::insertSubmodelAction: "
- << "current->getUMLObject (" << current->getUMLObject()
- << ") is not a Folder" << endl;
+ << "current->getUMLObject (" << o->getName() << ") is not a Folder" << endl;
return;
}
QString submodelFile = f->getFolderFile();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic