Don't slow execution just because TDEAction::plugAccel was used

pull/16/head
Timothy Pearson 10 years ago
parent 7b66a28f37
commit 7dee44aa03

@ -772,9 +772,11 @@ void TDEAction::unplug( TQWidget *w )
void TDEAction::plugAccel(TDEAccel *kacc, bool configurable) void TDEAction::plugAccel(TDEAccel *kacc, bool configurable)
{ {
#if 0 //ndef NDEBUG
kdWarning(129) << "TDEAction::plugAccel(): call to deprecated action." << endl; kdWarning(129) << "TDEAction::plugAccel(): call to deprecated action." << endl;
kdDebug(129) << kdBacktrace() << endl; kdDebug(129) << kdBacktrace() << endl;
//kdDebug(129) << "TDEAction::plugAccel( kacc = " << kacc << " ): name \"" << name() << "\"" << endl; //kdDebug(129) << "TDEAction::plugAccel( kacc = " << kacc << " ): name \"" << name() << "\"" << endl;
#endif
if ( d->m_tdeaccel ) if ( d->m_tdeaccel )
unplugAccel(); unplugAccel();
@ -795,7 +797,11 @@ void TDEAction::plugAccel(TDEAccel *kacc, bool configurable)
//connect(d->m_tdeaccel, TQT_SIGNAL(keycodeChanged()), this, TQT_SLOT(slotKeycodeChanged())); //connect(d->m_tdeaccel, TQT_SIGNAL(keycodeChanged()), this, TQT_SLOT(slotKeycodeChanged()));
} }
else else
{
#if 0 //ndef NDEBUG
kdWarning(129) << "TDEAction::plugAccel( kacc = " << kacc << " ): TDEAccel object already contains an action name \"" << name() << "\"" << endl; // -- ellis kdWarning(129) << "TDEAction::plugAccel( kacc = " << kacc << " ): TDEAccel object already contains an action name \"" << name() << "\"" << endl; // -- ellis
#endif
}
} }
void TDEAction::unplugAccel() void TDEAction::unplugAccel()

Loading…
Cancel
Save