[Marble-commits] KDE/kdeedu/marble/src/lib
Dennis Nienhüser
earthwings at gentoo.org
Thu Mar 31 23:01:31 CEST 2011
SVN commit 1226664 by nienhueser:
Don't add actions multiple times.
M +1 -1 AbstractFloatItem.cpp
--- trunk/KDE/kdeedu/marble/src/lib/AbstractFloatItem.cpp #1226663:1226664
@@ -218,7 +218,6 @@
if ( !d->m_contextMenu )
{
d->m_contextMenu = new QMenu;
- }
QAction *lockAction = d->m_contextMenu->addAction( tr( "&Lock" ) );
lockAction->setCheckable( true );
@@ -233,6 +232,7 @@
QAction *configAction = d->m_contextMenu->addAction( tr( "&Configure..." ) );
connect( configAction, SIGNAL( triggered() ), dialog, SLOT( exec() ) );
}
+ }
Q_ASSERT( d->m_contextMenu );
return d->m_contextMenu;
More information about the Marble-commits
mailing list