@@ -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
541542void 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