Show
Ignore:
Timestamp:
04/11/08 04:54:45 (8 months ago)
Author:
flynd
Message:

Changed 'Auto popup message' setting to be user configurable which statuses to allow it for. This closes #1416.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt4-gui/src/core/licqgui.cpp

    r6138 r6143  
    14801480        break; 
    14811481 
    1482       if (Config::Chat::instance()->autoPopup() && sig->Argument() > 0) 
    1483       { 
    1484         bool popCheck = false; 
     1482      if (sig->Argument() > 0) 
     1483      { 
     1484        unsigned short popCheck = 99; 
    14851485 
    14861486        ICQOwner* o = gUserManager.FetchOwner(ppid, LOCK_R); 
     
    14911491            case ICQ_STATUS_ONLINE: 
    14921492            case ICQ_STATUS_FREEFORCHAT: 
    1493               popCheck = true; 
    1494             default: 
    1495               gUserManager.DropOwner(ppid); 
     1493              popCheck = 1; 
     1494              break; 
     1495            case ICQ_STATUS_AWAY: 
     1496              popCheck = 2; 
     1497              break; 
     1498            case ICQ_STATUS_NA: 
     1499              popCheck = 3; 
     1500              break; 
     1501            case ICQ_STATUS_OCCUPIED: 
     1502              popCheck = 4; 
     1503              break; 
     1504            case ICQ_STATUS_DND: 
     1505              popCheck = 5; 
     1506              break; 
    14961507          } 
     1508          gUserManager.DropOwner(ppid); 
    14971509        } 
    14981510 
    1499         if (popCheck) 
     1511        if (Config::Chat::instance()->autoPopup() >= popCheck) 
    15001512        { 
    15011513          ICQUser* u = gUserManager.FetchUser(id.toLatin1(), ppid, LOCK_R);