Fix umlaut-crash on linux machines

This commit is contained in:
Martin Brodbeck 2021-09-19 19:52:32 +02:00
parent e48fbe82e0
commit 92ecc92bf7

View file

@ -48,7 +48,11 @@ void ReportDialog::onExportCsvButtonClicked()
if (filename.isEmpty()) if (filename.isEmpty())
return; return;
#if defined(_WIN64) || defined(_WIN32)
fs::path filePath(filename.toStdWString()); fs::path filePath(filename.toStdWString());
#else
fs::path filePath(filename.toStdString());
#endif
market_->exportReportToCSV(filePath, feeInPercent, maxFeeInEuro); market_->exportReportToCSV(filePath, feeInPercent, maxFeeInEuro);
} }