|
|
@ -40,17 +40,14 @@ void CServer::loadFromSettings(const QSettings &settings)
|
|
|
|
clientFilename = settings.value("client_filename_windows").toString();
|
|
|
|
clientFilename = settings.value("client_filename_windows").toString();
|
|
|
|
clientFilenameOld = settings.value("client_filename_old_windows").toString();
|
|
|
|
clientFilenameOld = settings.value("client_filename_old_windows").toString();
|
|
|
|
configurationFilename = settings.value("configuration_filename_windows").toString();
|
|
|
|
configurationFilename = settings.value("configuration_filename_windows").toString();
|
|
|
|
installerFilename = settings.value("installer_filename_windows").toString();
|
|
|
|
|
|
|
|
#elif defined(Q_OS_MAC)
|
|
|
|
#elif defined(Q_OS_MAC)
|
|
|
|
clientFilename = settings.value("client_filename_osx").toString();
|
|
|
|
clientFilename = settings.value("client_filename_osx").toString();
|
|
|
|
clientFilenameOld = settings.value("client_filename_old_osx").toString();
|
|
|
|
clientFilenameOld = settings.value("client_filename_old_osx").toString();
|
|
|
|
configurationFilename = settings.value("configuration_filename_osx").toString();
|
|
|
|
configurationFilename = settings.value("configuration_filename_osx").toString();
|
|
|
|
installerFilename = settings.value("installer_filename_osx").toString();
|
|
|
|
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
clientFilename = settings.value("client_filename_linux").toString();
|
|
|
|
clientFilename = settings.value("client_filename_linux").toString();
|
|
|
|
clientFilenameOld = settings.value("client_filename_old_linux").toString();
|
|
|
|
clientFilenameOld = settings.value("client_filename_old_linux").toString();
|
|
|
|
configurationFilename = settings.value("configuration_filename_linux").toString();
|
|
|
|
configurationFilename = settings.value("configuration_filename_linux").toString();
|
|
|
|
installerFilename = settings.value("installer_filename_linux").toString();
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
comments = settings.value("comments").toString();
|
|
|
|
comments = settings.value("comments").toString();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -71,17 +68,14 @@ void CServer::saveToSettings(QSettings &settings) const
|
|
|
|
settings.setValue("client_filename_windows", clientFilename);
|
|
|
|
settings.setValue("client_filename_windows", clientFilename);
|
|
|
|
settings.setValue("client_filename_old_windows", clientFilenameOld);
|
|
|
|
settings.setValue("client_filename_old_windows", clientFilenameOld);
|
|
|
|
settings.setValue("configuration_filename_windows", configurationFilename);
|
|
|
|
settings.setValue("configuration_filename_windows", configurationFilename);
|
|
|
|
settings.setValue("installer_filename_windows", installerFilename);
|
|
|
|
|
|
|
|
#elif defined(Q_OS_MAC)
|
|
|
|
#elif defined(Q_OS_MAC)
|
|
|
|
settings.setValue("client_filename_osx", clientFilename);
|
|
|
|
settings.setValue("client_filename_osx", clientFilename);
|
|
|
|
settings.setValue("client_filename_old_osx", clientFilenameOld);
|
|
|
|
settings.setValue("client_filename_old_osx", clientFilenameOld);
|
|
|
|
settings.setValue("configuration_filename_osx", configurationFilename);
|
|
|
|
settings.setValue("configuration_filename_osx", configurationFilename);
|
|
|
|
settings.setValue("installer_filename_osx", installerFilename);
|
|
|
|
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
settings.setValue("client_filename_linux", clientFilename);
|
|
|
|
settings.setValue("client_filename_linux", clientFilename);
|
|
|
|
settings.setValue("client_filename_old_linux", clientFilenameOld);
|
|
|
|
settings.setValue("client_filename_old_linux", clientFilenameOld);
|
|
|
|
settings.setValue("configuration_filename_linux", configurationFilename);
|
|
|
|
settings.setValue("configuration_filename_linux", configurationFilename);
|
|
|
|
settings.setValue("installer_filename_linux", installerFilename);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
settings.setValue("comments", comments);
|
|
|
|
settings.setValue("comments", comments);
|
|
|
|
}
|
|
|
|
}
|
|
|
|