QTfrontend/chatwidget.cpp
changeset 5735 08ac2d557392
parent 5259 926958e3e87b
child 5772 c09c50efe8b5
--- a/QTfrontend/chatwidget.cpp	Fri Sep 02 12:06:24 2011 +0400
+++ b/QTfrontend/chatwidget.cpp	Fri Sep 02 12:27:15 2011 +0400
@@ -233,7 +233,7 @@
 void HWChatWidget::loadList(QStringList & list, const QString & file)
 {
     list.clear();
-    QFile txt((cfgdir->absolutePath() + "/" + file).toLocal8Bit().constData());
+    QFile txt(cfgdir->absolutePath() + "/" + file);
     if(!txt.open(QIODevice::ReadOnly))
         return;
     QTextStream stream(&txt);
@@ -253,7 +253,7 @@
 
 void HWChatWidget::saveList(QStringList & list, const QString & file)
 {
-    QFile txt((cfgdir->absolutePath() + "/" + file).toLocal8Bit().constData());
+    QFile txt(cfgdir->absolutePath() + "/" + file);
     if(!txt.open(QIODevice::WriteOnly | QIODevice::Truncate))
         return;
     QTextStream stream(&txt);