~ubuntu-branches/ubuntu/precise/konversation/precise-security

« back to all changes in this revision

Viewing changes to src/viewer/chatwindow.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Modestas Vainius
  • Date: 2010-02-12 10:58:50 UTC
  • mfrom: (2.3.6 squeeze)
  • mto: (2.4.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 45.
  • Revision ID: james.westby@ubuntu.com-20100212105850-g4i3f4i6o2jy3js2
Tags: 1.2.3-1
* New upstream release.
* Refresh patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
220
220
void ChatWindow::appendBacklogMessage(const QString& firstColumn,const QString& message)
221
221
{
222
222
    if(!textView) return ;
223
 
    textView->appendBacklogMessage(firstColumn,message);
 
223
    textView->appendBacklogMessage(firstColumn,Konversation::sterilizeUnicode(message));
224
224
}
225
225
 
226
226
void ChatWindow::cdIntoLogPath()
368
368
                QStringList::Iterator itFirstColumn = firstColumns.begin();
369
369
                QStringList::Iterator itMessage = messages.begin();
370
370
                for( ; itFirstColumn != firstColumns.end() ; ++itFirstColumn, ++itMessage )
371
 
                {
372
 
                    // Qt uses 0xFDD0 and 0xFDD1 to mark the beginning and end of text frames. Remove
373
 
                    // these here to avoid fatal errors encountered in QText* and the event loop pro-
374
 
                    // cessing.
375
 
                    itMessage->remove(QChar(0xFDD0)).remove(QChar(0xFDD1));
376
 
 
377
371
                    appendBacklogMessage(*itFirstColumn, *itMessage);
378
 
                }
379
372
            }
380
373
        } // if(Preferences::showBacklog())
381
374
    }