[Marble-commits] KDE/kdeedu/marble/src/lib
Patrick Spendrin
ps_ml at gmx.de
Fri Jul 10 00:36:59 CEST 2009
SVN commit 994028 by sengels:
do not crash if marblewidget is not used within marble
M +1 -1 MarbleWidget.cpp
--- trunk/KDE/kdeedu/marble/src/lib/MarbleWidget.cpp #994027:994028
@@ -131,7 +131,7 @@
// setAttribute( Qt::WA_PaintOnScreen, true );
d->construct();
- if( parent->parent()->inherits( "QMainWindow" ) ) {
+ if( parent && parent->parent() && parent->parent()->inherits( "QMainWindow" ) ) {
((QMainWindow*) parent->parent())->addToolBar(d->m_mainToolbar);
}
More information about the Marble-commits
mailing list