Changeset 47 for psi/trunk/src
- Timestamp:
- Sep 10, 2006, 7:07:41 PM (19 years ago)
- Location:
- psi/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
psi/trunk/src/tabdlg.cpp
r18 r47 201 201 } 202 202 203 void TabDlg::closeChat(ChatDlg* chat, bool doclose=true) 204 { 205 chat->hide(); 203 bool TabDlg::closeChat(ChatDlg* chat, bool doclose=true) 204 { 205 if (doclose) { 206 if (!chat->close()) 207 return false; 208 } else { 209 chat->hide(); 210 } 206 211 disconnect ( chat, SIGNAL( captionChanged( ChatDlg*) ), this, SLOT( updateTab( ChatDlg* ) ) ); 207 212 disconnect ( chat, SIGNAL( contactIsComposing(ChatDlg*, bool) ), this, SLOT( setTabComposing( ChatDlg*, bool) ) ); … … 212 217 chats.remove(chat); 213 218 chat->reparent(0,QPoint()); 214 if (doclose)215 chat->close();216 219 if (tabs->count()>0) 217 220 updateCaption(); 218 221 checkHasChats(); 222 return true; 219 223 } 220 224 … … 275 279 int count=tabs->count(); 276 280 for (int i=0;i<count;++i) { 277 closeChat(); 281 if (!closeChat((ChatDlg*)(tabs->currentPage()))) 282 return; 278 283 } 279 284 } -
psi/trunk/src/tabdlg.h
r2 r47 72 72 void addChat(ChatDlg *chat); 73 73 void setLooks(); 74 voidcloseChat(ChatDlg*,bool);74 bool closeChat(ChatDlg*,bool); 75 75 void selectTab(ChatDlg*); 76 76 void activated();
Note:
See TracChangeset
for help on using the changeset viewer.