propose filename for seller export

This commit is contained in:
Martin Brodbeck 2018-10-18 14:50:15 +02:00
parent 1aa56f24a3
commit bc9e395ee9
2 changed files with 4 additions and 3 deletions

1
3rdparty/nlohmann_json vendored Submodule

@ -0,0 +1 @@
Subproject commit f1768a540a7b7c5cc30cdcd6be9e9ef91083719b

View file

@ -260,7 +260,7 @@ void MainWindow::checkSellerNo(bool ctrlPressed)
auto seller = marketplace_->findSellerWithSellerNo(sellerNo); auto seller = marketplace_->findSellerWithSellerNo(sellerNo);
if (seller) { if (seller) {
PriceDialog priceDialog(this); PriceDialog priceDialog(this);
if(sellerNo == 0) { if (sellerNo == 0) {
priceDialog.setForceDesc(true); priceDialog.setForceDesc(true);
} }
auto dialogResult = priceDialog.exec(); auto dialogResult = priceDialog.exec();
@ -476,8 +476,8 @@ void MainWindow::onImportSellerJsonActionTriggered()
void MainWindow::onExportSellerJsonActionTriggered() void MainWindow::onExportSellerJsonActionTriggered()
{ {
auto filename = QFileDialog::getSaveFileName(this, "Verkäufer exportieren", QString(), auto filename = QFileDialog::getSaveFileName(
"JSON Dateien (*.json)"); this, "Verkäufer exportieren", QString("kima2_verkaeufer.json"), "JSON Dateien (*.json)");
if (filename.isEmpty()) if (filename.isEmpty())
return; return;