mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-21 08:28:44 +00:00
Changed: Save/load configuration filename
This commit is contained in:
parent
3cb8242055
commit
1ae4d19df5
2 changed files with 7 additions and 0 deletions
|
@ -82,10 +82,13 @@ bool CConfigFile::load(const QString &filename)
|
||||||
server.clientDownloadFilename = settings.value("client_download_filename").toString();
|
server.clientDownloadFilename = settings.value("client_download_filename").toString();
|
||||||
#if defined(Q_OS_WIN)
|
#if defined(Q_OS_WIN)
|
||||||
server.clientFilename = settings.value("client_filename_windows").toString();
|
server.clientFilename = settings.value("client_filename_windows").toString();
|
||||||
|
server.configurationFilename = settings.value("configuration_filename_windows").toString();
|
||||||
#elif defined(Q_OS_MAC)
|
#elif defined(Q_OS_MAC)
|
||||||
server.clientFilename = settings.value("client_filename_osx").toString();
|
server.clientFilename = settings.value("client_filename_osx").toString();
|
||||||
|
server.configurationFilename = settings.value("configuration_filename_osx").toString();
|
||||||
#else
|
#else
|
||||||
server.clientFilename = settings.value("client_filename_linux").toString();
|
server.clientFilename = settings.value("client_filename_linux").toString();
|
||||||
|
server.configurationFilename = settings.value("configuration_filename_linux").toString();
|
||||||
#endif
|
#endif
|
||||||
server.comments = settings.value("comments").toString();
|
server.comments = settings.value("comments").toString();
|
||||||
|
|
||||||
|
@ -154,10 +157,13 @@ bool CConfigFile::save() const
|
||||||
settings.setValue("client_download_filename", server.clientDownloadFilename);
|
settings.setValue("client_download_filename", server.clientDownloadFilename);
|
||||||
#if defined(Q_OS_WIN)
|
#if defined(Q_OS_WIN)
|
||||||
settings.setValue("client_filename_windows", server.clientFilename);
|
settings.setValue("client_filename_windows", server.clientFilename);
|
||||||
|
settings.setValue("configuration_filename_windows", server.configurationFilename);
|
||||||
#elif defined(Q_OS_MAC)
|
#elif defined(Q_OS_MAC)
|
||||||
settings.setValue("client_filename_osx", server.clientFilename);
|
settings.setValue("client_filename_osx", server.clientFilename);
|
||||||
|
settings.setValue("configuration_filename_osx", server.configurationFilename);
|
||||||
#else
|
#else
|
||||||
settings.setValue("client_filename_linux", server.clientFilename);
|
settings.setValue("client_filename_linux", server.clientFilename);
|
||||||
|
settings.setValue("configuration_filename_linux", server.configurationFilename);
|
||||||
#endif
|
#endif
|
||||||
settings.setValue("comments", server.comments);
|
settings.setValue("comments", server.comments);
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,7 @@ struct CServer
|
||||||
QString clientDownloadUrl;
|
QString clientDownloadUrl;
|
||||||
QString clientDownloadFilename;
|
QString clientDownloadFilename;
|
||||||
QString clientFilename;
|
QString clientFilename;
|
||||||
|
QString configurationFilename;
|
||||||
QString comments;
|
QString comments;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue