GU mode: use default config file if argument --config and --session are not set
This commit is contained in:
parent
0424bf181c
commit
eefd6c6ff6
@ -429,6 +429,10 @@ int main(int argc, char* argv[])
|
|||||||
if(sessionNew)
|
if(sessionNew)
|
||||||
{
|
{
|
||||||
UINFO(" Session path: \"%s\" [NEW]", sessionPath.toStdString().c_str());
|
UINFO(" Session path: \"%s\" [NEW]", sessionPath.toStdString().c_str());
|
||||||
|
if(configPath.isEmpty() && guiMode)
|
||||||
|
{
|
||||||
|
configPath = find_object::Settings::iniDefaultPath();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -451,6 +455,10 @@ int main(int argc, char* argv[])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if(configPath.isEmpty() && guiMode)
|
||||||
|
{
|
||||||
|
configPath = find_object::Settings::iniDefaultPath();
|
||||||
|
}
|
||||||
if(!objectsPath.isEmpty())
|
if(!objectsPath.isEmpty())
|
||||||
{
|
{
|
||||||
UINFO(" Objects path: \"%s\"", objectsPath.toStdString().c_str());
|
UINFO(" Objects path: \"%s\"", objectsPath.toStdString().c_str());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user