use path to save json file (sales)

This commit is contained in:
Martin Brodbeck 2018-08-09 13:11:23 +02:00
parent be1d731de3
commit 0967a01994
3 changed files with 6 additions and 4 deletions

View file

@ -425,7 +425,9 @@ void MainWindow::onExportSalesJsonActionTriggered()
if (filename.isEmpty())
return;
JsonUtil::exportSales(filename.toStdString(), marketplace_.get(),
std::filesystem::path filePath(filename.toStdWString());
JsonUtil::exportSales(filePath, marketplace_.get(),
settings.value("global/cashPointNo").toInt());
}