Fix file system problem (umlauts) on Linux
This commit is contained in:
parent
99104a932f
commit
acc8408b0a
1 changed files with 16 additions and 0 deletions
|
@ -462,7 +462,11 @@ void MainWindow::onImportSellerExcelActionTriggered()
|
|||
if (filename.isEmpty())
|
||||
return;
|
||||
|
||||
#if defined(_WIN64) || defined(_WIN32)
|
||||
fs::path filePath(filename.toStdWString());
|
||||
#else
|
||||
fs::path filePath(filename.toStdString());
|
||||
#endif
|
||||
|
||||
std::size_t numImported{};
|
||||
if (case_insensitive_match(filePath.extension().string(), std::string(".xlsx"))) {
|
||||
|
@ -498,7 +502,11 @@ void MainWindow::onImportSellerJsonActionTriggered()
|
|||
if (filename.isEmpty())
|
||||
return;
|
||||
|
||||
#if defined(_WIN64) || defined(_WIN32)
|
||||
fs::path filePath(filename.toStdWString());
|
||||
#else
|
||||
fs::path filePath(filename.toStdString());
|
||||
#endif
|
||||
|
||||
JsonUtil::importSellers(filePath, marketplace_.get());
|
||||
updateStatLabel();
|
||||
|
@ -529,7 +537,11 @@ void MainWindow::onExportSalesJsonActionTriggered()
|
|||
if (filename.isEmpty())
|
||||
return;
|
||||
|
||||
#if defined(_WIN64) || defined(_WIN32)
|
||||
fs::path filePath(filename.toStdWString());
|
||||
#else
|
||||
fs::path filePath(filename.toStdString());
|
||||
#endif
|
||||
|
||||
JsonUtil::exportSales(filePath, marketplace_.get(),
|
||||
settings.value("global/cashPointNo").toInt());
|
||||
|
@ -545,7 +557,11 @@ void MainWindow::onImportSalesJsonActionTriggered()
|
|||
if (filename.isEmpty())
|
||||
return;
|
||||
|
||||
#if defined(_WIN64) || defined(_WIN32)
|
||||
fs::path filePath(filename.toStdWString());
|
||||
#else
|
||||
fs::path filePath(filename.toStdString());
|
||||
#endif
|
||||
|
||||
delete ui_.salesView->model();
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue