summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2016-11-18 16:46:02 (GMT)
committerRalf Habacker <ralf.habacker@freenet.de>2016-11-18 16:46:02 (GMT)
commit44f3d39667460a750fc36cc4ce408f2f71111a13 (patch)
tree5ed3f1e120a167b2268416cf4e1fe7ebdf95a69b
parent7e1d8adc4bf225691d0082b2286ad7a74a23c8e1 (diff)
Fix crash in case welcome file is not available.
-rw-r--r--umbrello/uml.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/umbrello/uml.cpp b/umbrello/uml.cpp
index 532c5c4..1cf0e80 100644
--- a/umbrello/uml.cpp
+++ b/umbrello/uml.cpp
@@ -1003,9 +1003,11 @@ void UMLApp::initView()
#ifdef ENABLE_UML_OBJECTS_WINDOW
tabifyDockWidget(m_d->diagramsWindow, m_d->objectsWindow);
#endif
- tabifyDockWidget(m_d->welcomeWindow, m_birdViewDock);
+ if (m_d->welcomeWindow) {
+ tabifyDockWidget(m_d->welcomeWindow, m_birdViewDock);
+ m_d->welcomeWindow->raise();
+ }
m_listDock->raise();
- m_d->welcomeWindow->raise();
}
/**