build: Fixed Linux build

This commit is contained in:
Eberhard Graether
2019-11-05 23:20:17 +01:00
parent c34b17418d
commit dca9e2627c
3 changed files with 17 additions and 6 deletions
@@ -1,5 +1,7 @@
#include "QtProjectWizardContentPathsHeaderSearch.h"
#include <cmath>
#include <QMessageBox>
#include "Application.h"
+3 -5
View File
@@ -17,19 +17,17 @@ struct EventListener : Catch::TestEventListenerBase
if (!homedir.empty())
{
if(!ApplicationSettings::getInstance()->load(
FilePath(homedir + "/.config/sourcetrail/ApplicationSettings.xml")
))
FilePath(homedir + "/.config/sourcetrail/ApplicationSettings.xml")))
{
std::cout << "no settings" << std::endl;
return false;
return;
}
}
else
{
std::cout << "no homedir" << std::endl;
return false;
return;
}
#else
ApplicationSettings::getInstance()->load(FilePath(L"data/TestSettings.xml"));
#endif