diff --git a/kmcomposewin.cpp b/kmcomposewin.cpp index 1c4176275..3b92886bb 100644 --- a/kmcomposewin.cpp +++ b/kmcomposewin.cpp @@ -1154,10 +1154,12 @@ void KMComposeWin::getTransportMenu() availTransports = TransportManager::self()->transportNames(); QStringList::Iterator it; for ( it = availTransports.begin(); it != availTransports.end() ; ++it ) { - QAction *action = new QAction( (*it).replace( "&", "&&" ), mActNowMenu ); - action->setData( TransportManager::self()->transportByName( *it )->id() ); - mActNowMenu->addAction( action ); - mActLaterMenu->addAction( action ); + QAction *action1 = new QAction( (*it).replace( "&", "&&" ), mActNowMenu ); + QAction *action2 = new QAction( (*it).replace( "&", "&&" ), mActLaterMenu ); + action1->setData( TransportManager::self()->transportByName( *it )->id() ); + action2->setData( TransportManager::self()->transportByName( *it )->id() ); + mActNowMenu->addAction( action1 ); + mActLaterMenu->addAction( action2 ); } }