Changeset 673:345ff9dded46 in qutecom-2.2


Ignore:
Timestamp:
Oct 16, 2010 12:19:18 PM (3 years ago)
Author:
laurent@…
Branch:
default
Message:

bug fix : double message in chat

Location:
qutecom/src/presentation/qt/chat
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • qutecom/src/presentation/qt/chat/QtChatWidget.cpp

    r666 r673  
    8888        QWidget(parent), 
    8989        _cChatHandler(cChatHandler), 
    90         _qtQuteCom(qtQuteCom) { 
     90        _qtQuteCom(qtQuteCom),isLoaded(false) { 
    9191 
    9292        //Default nickname for testing purpose 
     
    327327 
    328328void QtChatWidget::addToHistory(const QString & contactId, const QString & senderName, const QString & str, const QTime & time) { 
     329        if(!isLoaded) 
     330                return; 
     331 
    329332        QTime tmp; 
    330333        if (time.isNull()) { 
     
    651654                                                                                        ); 
    652655                } 
     656                isLoaded = true; 
    653657} 
    654658 
  • qutecom/src/presentation/qt/chat/QtChatWidget.h

    r645 r673  
    234234 
    235235        QWebView * _webView; 
     236 
     237        bool isLoaded; 
    236238}; 
    237239 
Note: See TracChangeset for help on using the changeset viewer.