Skip to content

Commit f827d3e

Browse files
committed
Added noconfigfile command line argument
1 parent 61de17d commit f827d3e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

mainwindow.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,8 @@ void MainWindow::startPcb2gcode()
307307
{
308308
ui->startPushButton->setEnabled(false);
309309

310-
arguments = getCmdLineArguments();
310+
arguments << "--noconfigfile";
311+
arguments += getCmdLineArguments();
311312

312313
pcb2gcodeOutputWindow = new outputWindow(this);
313314
pcb2gcodeOutputWindow->setWindowTitle(PCB2GCODE_COMMAND_NAME " output");
@@ -540,7 +541,7 @@ void MainWindow::saveConfFile(QString filename)
540541

541542
void MainWindow::saveDefaultConfFile()
542543
{
543-
QString appDataLocation = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
544+
QString appDataLocation = QStandardPaths::writableLocation(QStandardPaths::DataLocation);
544545

545546
if( appDataLocation.isEmpty() )
546547
QMessageBox::information(this, "Error", "Can't retrieve standard folder location");
@@ -559,7 +560,7 @@ void MainWindow::resetDefaultConfFile()
559560
"Are you sure you want to reset the default configuration?",
560561
QMessageBox::Yes, QMessageBox::No) == QMessageBox::Yes )
561562
{
562-
appDataLocation = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
563+
appDataLocation = QStandardPaths::writableLocation(QStandardPaths::DataLocation);
563564
if( appDataLocation.isEmpty() )
564565
QMessageBox::information(this, "Error", "Can't retrieve standard folder location");
565566
else
@@ -573,7 +574,7 @@ void MainWindow::loadDefaultConfFile()
573574
{
574575
QString appDataLocation;
575576

576-
appDataLocation = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
577+
appDataLocation = QStandardPaths::writableLocation(QStandardPaths::DataLocation);
577578
if( appDataLocation.isEmpty() )
578579
QMessageBox::information(this, "Error", "Can't retrieve standard folder location");
579580
else

0 commit comments

Comments
 (0)