Retrieving Application name from umbrella project and using it to determine the path of the QtMaintenanceTool.
This commit is contained in:
@ -7,6 +7,7 @@
|
|||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|
||||||
|
#include "../../ApplicationConfig.h"
|
||||||
#include "CoreConfig.h"
|
#include "CoreConfig.h"
|
||||||
#include "constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
@ -70,7 +71,7 @@ QString GenericCore::getMaintenanceToolFilePath() const {
|
|||||||
/// setting the applicationDirPath hard coded to test update feature from IDE
|
/// setting the applicationDirPath hard coded to test update feature from IDE
|
||||||
#ifdef QT_DEBUG
|
#ifdef QT_DEBUG
|
||||||
// REFACTOR retrieve application name automatically instead of using hard coded name
|
// REFACTOR retrieve application name automatically instead of using hard coded name
|
||||||
applicationDirPath = "/opt/GenericQtClient";
|
applicationDirPath = QString("/opt/%1").arg(APPLICATION_NAME);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
|
|||||||
Reference in New Issue
Block a user