CVS commit by lilachaze:
Save XML, not HTML, when saving contents of a chat view
M +2 -2 chatview.cpp 1.226
--- kdenonbeta/kopete/libkopete/ui/chatview.cpp #1.225:1.226
@@ -228,5 +228,5 @@ void ChatView::slotScrollPressed()
void ChatView::save()
{
- QString fileName = KFileDialog::getSaveFileName ( QString::null, QString::fromLatin1( "text/html" ),
+ QString fileName = KFileDialog::getSaveFileName ( QString::null, QString::fromLatin1( "text/xml" ),
this, i18n( "Save Conversation" ) );
@@ -238,5 +238,5 @@ void ChatView::save()
{
QTextStream stream ( &file );
- stream << viewsText(); // text() is full-featured html
+ stream << xmlDoc.toString();
file.close(); // maybe unneeded but I like to close opened files ;)
}