From bc9e395ee986f1fb8485f56ec1f05ee4b618e1c7 Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Thu, 18 Oct 2018 14:50:15 +0200 Subject: [PATCH] propose filename for seller export --- 3rdparty/nlohmann_json | 1 + src/gui/mainwindow.cpp | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 160000 3rdparty/nlohmann_json diff --git a/3rdparty/nlohmann_json b/3rdparty/nlohmann_json new file mode 160000 index 0000000..f1768a5 --- /dev/null +++ b/3rdparty/nlohmann_json @@ -0,0 +1 @@ +Subproject commit f1768a540a7b7c5cc30cdcd6be9e9ef91083719b diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index c79a776..2a3d326 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -260,7 +260,7 @@ void MainWindow::checkSellerNo(bool ctrlPressed) auto seller = marketplace_->findSellerWithSellerNo(sellerNo); if (seller) { PriceDialog priceDialog(this); - if(sellerNo == 0) { + if (sellerNo == 0) { priceDialog.setForceDesc(true); } auto dialogResult = priceDialog.exec(); @@ -476,8 +476,8 @@ void MainWindow::onImportSellerJsonActionTriggered() void MainWindow::onExportSellerJsonActionTriggered() { - auto filename = QFileDialog::getSaveFileName(this, "Verkäufer exportieren", QString(), - "JSON Dateien (*.json)"); + auto filename = QFileDialog::getSaveFileName( + this, "Verkäufer exportieren", QString("kima2_verkaeufer.json"), "JSON Dateien (*.json)"); if (filename.isEmpty()) return;