353 wsDev.host = "localhost"; |
353 wsDev.host = "localhost"; |
354 settings.setValue("host", wsDev.host); |
354 settings.setValue("host", wsDev.host); |
355 } |
355 } |
356 settings.endGroup(); |
356 settings.endGroup(); |
357 qDebug() << "WS dev" << wsDev.host; |
357 qDebug() << "WS dev" << wsDev.host; |
|
358 |
|
359 settings.beginGroup("paths"); |
|
360 if (settings.value("images").toString().isEmpty()) { |
|
361 settings.setValue("download", QDir::homePath()); |
|
362 settings.setValue("images", QDir::homePath()); |
|
363 settings.setValue("beerxml", QDir::homePath()); |
|
364 } |
|
365 settings.endGroup(); |
358 } |
366 } |
359 |
367 |
360 |
368 |
361 void MainWindow::writesettings() |
369 void MainWindow::writesettings() |
362 { |
370 { |