as default store ini file in the same directory as the llcon binary is located
This commit is contained in:
parent
b319e67ca7
commit
5ff4ef7d42
1 changed files with 4 additions and 2 deletions
|
@ -38,7 +38,8 @@ void CSettings::ReadIniFile ( const QString& sFileName )
|
||||||
if ( sCurFileName.isEmpty() )
|
if ( sCurFileName.isEmpty() )
|
||||||
{
|
{
|
||||||
// if no file name is available, use default file name
|
// 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
|
// read data from file if possible
|
||||||
|
@ -219,7 +220,8 @@ void CSettings::WriteIniFile ( const QString& sFileName )
|
||||||
if ( sCurFileName.isEmpty() )
|
if ( sCurFileName.isEmpty() )
|
||||||
{
|
{
|
||||||
// if no file name is available, use default file name
|
// 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
|
// store XML data in file
|
||||||
|
|
Loading…
Reference in a new issue