"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/GUI/LauncherController.cxx" between
flightgear-2020.3.7.tar.bz2 and flightgear-2020.3.8.tar.bz2

About: FlightGear is a multi-platform, cooperative flight simulator development project.

LauncherController.cxx  (flightgear-2020.3.7.tar.bz2):LauncherController.cxx  (flightgear-2020.3.8.tar.bz2)
skipping to change at line 290 skipping to change at line 290
settings.setValue("window-state", m_window->windowState()); settings.setValue("window-state", m_window->windowState());
} }
m_config->saveConfigToINI(); m_config->saveConfigToINI();
m_aircraftHistory->saveToSettings(); m_aircraftHistory->saveToSettings();
m_locationHistory->saveToSettings(); m_locationHistory->saveToSettings();
} }
void LauncherController::collectAircraftArgs() void LauncherController::collectAircraftArgs()
{ {
if (m_skipAircraftFromArgs)
return;
// aircraft // aircraft
if (!m_selectedAircraft.isEmpty()) { if (!m_selectedAircraft.isEmpty()) {
if (m_selectedAircraft.isLocalFile()) { if (m_selectedAircraft.isLocalFile()) {
QFileInfo setFileInfo(m_selectedAircraft.toLocalFile()); QFileInfo setFileInfo(m_selectedAircraft.toLocalFile());
m_config->setArg("aircraft-dir", setFileInfo.dir().absolutePath()); m_config->setArg("aircraft-dir", setFileInfo.dir().absolutePath());
QString setFile = setFileInfo.fileName(); QString setFile = setFileInfo.fileName();
Q_ASSERT(setFile.endsWith("-set.xml")); Q_ASSERT(setFile.endsWith("-set.xml"));
setFile.truncate(setFile.count() - 8); // drop the '-set.xml' portio n setFile.truncate(setFile.count() - 8); // drop the '-set.xml' portio n
m_config->setArg("aircraft", setFile); m_config->setArg("aircraft", setFile);
} else if (m_selectedAircraft.scheme() == "package") { } else if (m_selectedAircraft.scheme() == "package") {
 End of changes. 1 change blocks. 
0 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)