[Marble-commits] KDE/kdeedu/marble/src/lib/routing
Dennis Nienhüser
earthwings at gentoo.org
Sun May 9 17:45:43 CEST 2010
SVN commit 1124596 by nienhueser:
Fix a crash happening due to a dangling pointer appearing when removing an input field in placemark selection mode.
M +4 -0 RoutingWidget.cpp
--- trunk/KDE/kdeedu/marble/src/lib/routing/RoutingWidget.cpp #1124595:1124596
@@ -353,6 +353,10 @@
d->m_inputWidgets.remove( index );
d->m_ui.routingLayout->removeWidget( widget );
widget->deleteLater();
+ if ( widget == d->m_activeInput ) {
+ d->m_activeInput = 0;
+ d->m_routingLayer->setModel( d->m_routingManager->routingModel() );
+ }
d->adjustInputWidgets();
}
More information about the Marble-commits
mailing list