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

(cherry picked from commit 7dee44aa03)
v3.5.13-sru
Timothy Pearson 11 years ago committed by Slávek Banko
parent 0120c1cd3e
commit d528ffc8c8

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

Loading…
Cancel
Save