Changeset 46 for psi/trunk/src/chatdlg.cpp
- Timestamp:
- Sep 10, 2006, 6:51:11 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
psi/trunk/src/chatdlg.cpp
r20 r46 1029 1029 deferredScroll(); 1030 1030 1031 TabDlg *dlg = NULL; 1032 AdvancedWidget<QWidget> *atlw = this; 1033 if (d->pa->psi()->isChatTabbed(this)) { 1034 dlg = d->pa->psi()->getManagingTabs(this); 1035 atlw = dlg; 1036 } 1037 1031 1038 // if we're not active, notify the user by changing the title 1032 if(!isActiveWindow() || isHidden()) { //isHidden==tab hack 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 } 1039 if(!atlw->isActiveWindow() || (dlg && !dlg->chatOnTop(this))) { 1040 // select the chat tab only if the Raise option is set but not when 1041 // the tab dialog is already active (so that the user is typing to 1042 // some other chat tab). Note that we do that before updateCaption() 1043 // because selectTab() will remove any title emphasis (asterisk, etc) 1044 if(option.raiseChatWindow && dlg && !dlg->isActiveWindow()) 1045 dlg->selectTab(this); 1046 ++d->pending; 1047 updateCaption(); 1048 if(option.raiseChatWindow) 1049 bringToFront(atlw, false); 1050 else 1051 atlw->doFlash(true); 1047 1052 } 1048 1053 //else {
Note:
See TracChangeset
for help on using the changeset viewer.