use path to open json file (sellers)
This commit is contained in:
parent
a04e8ad837
commit
7d98033c4a
3 changed files with 10 additions and 7 deletions
|
@ -15,8 +15,8 @@
|
|||
#include <posprinter.h>
|
||||
|
||||
#include <exception>
|
||||
#include <regex>
|
||||
#include <filesystem>
|
||||
#include <regex>
|
||||
|
||||
#include <QFileDialog>
|
||||
#include <QMessageBox>
|
||||
|
@ -377,9 +377,9 @@ void MainWindow::onImportSellerExcelActionTriggered()
|
|||
|
||||
if (filename.isEmpty())
|
||||
return;
|
||||
|
||||
|
||||
std::filesystem::path filePath(filename.toStdWString());
|
||||
|
||||
|
||||
ExcelReader::readSellersFromFile(filePath, marketplace_.get());
|
||||
}
|
||||
|
||||
|
@ -399,7 +399,9 @@ void MainWindow::onImportSellerJsonActionTriggered()
|
|||
if (filename.isEmpty())
|
||||
return;
|
||||
|
||||
JsonUtil::importSellers(filename.toStdString(), marketplace_.get());
|
||||
std::filesystem::path filePath(filename.toStdWString());
|
||||
|
||||
JsonUtil::importSellers(filePath, marketplace_.get());
|
||||
}
|
||||
|
||||
void MainWindow::onExportSellerJsonActionTriggered()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue