# HG changeset patch # User unc0rr # Date 1314952035 -14400 # Node ID 08ac2d557392ef0959026bc3da7c7da3576cf78b # Parent d710db47a1efa859b05985fcce1ee3af1b2edeb4 Remove toLocal8Bit() conversion of file name as Qt should handle filenames on its own. Helps with filename on Windows, could help with issue #189. diff -r d710db47a1ef -r 08ac2d557392 QTfrontend/chatwidget.cpp --- 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);