| 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); |
|---|