Fix 'format not a string literal' error.

Thanks to Serghei Amelian.
pull/1/head
Darrell Anderson 12 years ago
parent 27ccd2aacf
commit 9e417b6bd5

@ -207,7 +207,7 @@ TQString ExecButton::handleDCOP(int function, const TQStringList& args)
TQWidget * w; TQWidget * w;
while ( (w=it.current()) != 0 ) { // for each widget... while ( (w=it.current()) != 0 ) { // for each widget...
++it; ++it;
if (w->name() == args[0] && w->className() == "PopupMenu") if (w->name() == args[0] && ( strcmp(w->className(), "PopupMenu")) == 0 )
{ {
TQPopupMenu *popup = dynamic_cast<TQPopupMenu*>(w->child("unnamed", "KPopupMenu")); TQPopupMenu *popup = dynamic_cast<TQPopupMenu*>(w->child("unnamed", "KPopupMenu"));
this->setPopup(popup); this->setPopup(popup);

Loading…
Cancel
Save