diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-12-19 15:00:54 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-12-19 07:28:25 -0800 |
commit | 1bb7ab30c68d7ebfc8c00048b8baeee1a10e0aab (patch) | |
tree | c7719508a3689c25749d670541025855efbfc866 /qt-ui/mainwindow.cpp | |
parent | 69ed0d8393868dd4953d1fd906a83258408d7639 (diff) | |
download | subsurface-1bb7ab30c68d7ebfc8c00048b8baeee1a10e0aab.tar.gz |
Files: prefer toUtf8() over toLocal8Bit()
We may want to use toUtf8() for win32 considerations.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 36fa71d73..276f24ba9 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -825,7 +825,7 @@ void MainWindow::importFiles(const QStringList fileNames) QByteArray fileNamePtr; char *error = NULL; for (int i = 0; i < fileNames.size(); ++i) { - fileNamePtr = fileNames.at(i).toLocal8Bit(); + fileNamePtr = fileNames.at(i).toUtf8(); parse_file(fileNamePtr.data(), &error); if (error != NULL) { showError(error); @@ -846,7 +846,7 @@ void MainWindow::loadFiles(const QStringList fileNames) QByteArray fileNamePtr; for (int i = 0; i < fileNames.size(); ++i) { - fileNamePtr = fileNames.at(i).toLocal8Bit(); + fileNamePtr = fileNames.at(i).toUtf8(); parse_file(fileNamePtr.data(), &error); set_filename(fileNamePtr.data(), TRUE); setTitle(MWTF_FILENAME); |