diff options
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r-- | desktop-widgets/mainwindow.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index e73ce2850..e6b3424e8 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -1752,8 +1752,7 @@ void MainWindow::importTxtFiles(const QStringList fileNames) QByteArray fileNamePtr, csv; for (int i = 0; i < fileNames.size(); ++i) { - fileNamePtr = QFile::encodeName(fileNames.at(i)); - csv = fileNamePtr.data(); + csv = fileNamePtr = QFile::encodeName(fileNames.at(i)); csv.replace(csv.size() - 3, 3, "csv"); QFileInfo check_file(csv); |