Changeset 6540

Show
Ignore:
Timestamp:
10/13/08 00:58:30 (7 weeks ago)
Author:
flynd
Message:

Replicated r6539 to qt-gui.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt-gui/src/mainwin.cpp

    r6500 r6540  
    26822682{ 
    26832683  if (szId == 0 || nPPID == 0) return NULL; 
     2684 
     2685  // Find out what's supported for this protocol 
     2686  unsigned long sendFuncs = 0xFFFFFFFF; 
     2687  if (nPPID != LICQ_PPID) 
     2688  { 
     2689    FOR_EACH_PROTO_PLUGIN_START(gLicqDaemon) 
     2690    { 
     2691      if ((*_ppit)->PPID() == nPPID) 
     2692      { 
     2693        sendFuncs = (*_ppit)->SendFunctions(); 
     2694        break; 
     2695      } 
     2696    } 
     2697    FOR_EACH_PROTO_PLUGIN_END 
     2698  } 
     2699 
     2700  // Check if the protocol for this contact support the function we want to open 
     2701  if ((fcn == mnuUserSendMsg && !(sendFuncs & PP_SEND_MSG)) || 
     2702      (fcn == mnuUserSendUrl && !(sendFuncs & PP_SEND_URL)) || 
     2703      (fcn == mnuUserSendChat && !(sendFuncs & PP_SEND_CHAT)) || 
     2704      (fcn == mnuUserSendFile && !(sendFuncs & PP_SEND_FILE )) || 
     2705      (fcn == mnuUserSendContact && !(sendFuncs & PP_SEND_CONTACT)) || 
     2706      (fcn == mnuUserSendSms && !(sendFuncs & PP_SEND_SMS))) 
     2707    return NULL; 
     2708 
    26842709 
    26852710  UserEventCommon *e = NULL;