Changeset 6431

Show
Ignore:
Timestamp:
07/07/08 06:05:09 (5 months ago)
Author:
flynd
Message:

Change back to text message automatically after sending URI/File/ChatRequest/Contacts as that's probably what most users want.

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt-gui/src/usereventdlg.cpp

    r6430 r6431  
    24312431    return; 
    24322432  }*/ 
    2433   else 
    2434   { 
    2435     emit autoCloseNotify(); 
    2436     if (sendDone(e)) 
    2437     { 
    2438       emit mainwin->signal_sentevent(e); 
    2439       if (mainwin->m_bMsgChatView && mleHistory != NULL) 
    2440       { 
    2441         mleHistory->GotoEnd(); 
    2442         resetSettings(); 
    2443       } 
    2444       else 
    2445         close(); 
    2446     } 
     2433 
     2434  emit autoCloseNotify(); 
     2435  if (sendDone(e)) 
     2436  { 
     2437    emit mainwin->signal_sentevent(e); 
     2438    if (mainwin->m_bMsgChatView && mleHistory != NULL) 
     2439    { 
     2440      mleHistory->GotoEnd(); 
     2441      resetSettings(); 
     2442 
     2443      // After sending URI/File/Contact/ChatRequest switch back to text message 
     2444      if (!isType(UC_MESSAGE)) 
     2445        changeEventType(UC_MESSAGE); 
     2446    } 
     2447    else 
     2448      close(); 
    24472449  } 
    24482450} 
  • trunk/qt4-gui/src/userevents/usersendcommon.cpp

    r6430 r6431  
    11891189    return; 
    11901190  } 
    1191   else 
    1192   { 
    1193     emit autoCloseNotify(); 
    1194     if (sendDone(e)) 
    1195     { 
    1196       emit eventSent(e); 
    1197       if (Config::Chat::instance()->msgChatView() && myHistoryView != NULL) 
    1198       { 
    1199         myHistoryView->GotoEnd(); 
    1200         resetSettings(); 
    1201       } 
    1202       else 
    1203         close(); 
    1204     } 
     1191 
     1192  emit autoCloseNotify(); 
     1193  if (sendDone(e)) 
     1194  { 
     1195    emit eventSent(e); 
     1196    if (Config::Chat::instance()->msgChatView() && myHistoryView != NULL) 
     1197    { 
     1198      myHistoryView->GotoEnd(); 
     1199      resetSettings(); 
     1200 
     1201      // After sending URI/File/Contact/ChatRequest switch back to text message 
     1202      if (myType != MessageEvent) 
     1203        changeEventType(MessageEvent); 
     1204    } 
     1205    else 
     1206      close(); 
    12051207  } 
    12061208}