Changeset 20

Show
Ignore:
Timestamp:
09/05/06 01:36:24 (2 years ago)
Author:
dmik
Message:

ChatDlg?: Fixed: In the Tabbed chat mode, when 'Raise chat window on receiving new messages' was enabled, getting new messages for a contact in the hidden tab would highlight its title and make the corresponding chat dialog visible, but would not activate the tab handler.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • psi/trunk/src/chatdlg.cpp

    r2 r20  
    10311031        // if we're not active, notify the user by changing the title 
    10321032        if(!isActiveWindow() || isHidden()) { //isHidden==tab hack 
    1033                 ++d->pending; 
    1034                 updateCaption(); 
    1035                 doFlash(true); 
    1036                 if(option.raiseChatWindow) 
    1037                         bringToFront(this, false); 
     1033                if (!isActiveWindow() || !option.raiseChatWindow) { 
     1034                        ++d->pending; 
     1035                        updateCaption(); 
     1036                        doFlash(true); 
     1037                } 
     1038                TabDlg *dlg = d->pa->psi()->getManagingTabs(this); 
     1039                if(option.raiseChatWindow) { 
     1040                        if (!dlg) { 
     1041                                bringToFront(this, false); 
     1042                        } else { 
     1043                                dlg->selectTab(this); 
     1044                                bringToFront(dlg, false); 
     1045                        } 
     1046                } 
    10381047        } 
    10391048        //else {