as default store ini file in the same directory as the llcon binary is located

This commit is contained in:
Volker Fischer 2010-03-13 19:46:20 +00:00
parent b319e67ca7
commit 5ff4ef7d42

View file

@ -38,7 +38,8 @@ void CSettings::ReadIniFile ( const QString& sFileName )
if ( sCurFileName.isEmpty() )
{
// if no file name is available, use default file name
sCurFileName = LLCON_INIT_FILE_NAME;
sCurFileName =
QApplication::applicationDirPath() + "/" + LLCON_INIT_FILE_NAME;
}
// read data from file if possible
@ -219,7 +220,8 @@ void CSettings::WriteIniFile ( const QString& sFileName )
if ( sCurFileName.isEmpty() )
{
// if no file name is available, use default file name
sCurFileName = LLCON_INIT_FILE_NAME;
sCurFileName =
QApplication::applicationDirPath() + "/" + LLCON_INIT_FILE_NAME;
}
// store XML data in file