Skip to content

Commit

Permalink
backup.cpp: fix compilation on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
manup committed May 9, 2021
1 parent effcb73 commit 2052ff9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions backup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ bool BAK_ExportConfiguration(deCONZ::ApsController *apsCtrl)
QProcess archProcess;

#ifdef Q_OS_WIN
const QString appPath = qApp->applicationDirPath();
{
const QString appPath = qApp->applicationDirPath();
if (!QFile::exists(appPath + "/7za.exe"))
{
DBG_Printf(DBG_INFO, "7z not found: %s\n", qPrintable(appPath + "/7za.exe"));
Expand Down Expand Up @@ -242,9 +242,9 @@ bool BAK_ExportConfiguration(deCONZ::ApsController *apsCtrl)
{
QProcess zipProcess;
#ifdef Q_OS_WIN
QStringList args;
QString cmd = appPath + "/7za.exe";

cmd = appPath + "/7za.exe";
args.clear();
args.append("a");
args.append(path + "/deCONZ.tar.gz");
args.append(path + "/deCONZ.tar");
Expand Down Expand Up @@ -323,7 +323,7 @@ bool BAK_ImportConfiguration(deCONZ::ApsController *apsCtrl)
args.append("-y");
args.append(path + "/deCONZ.tar.gz");
args.append("-o" + path);
archProcess.>start(cmd, args);
archProcess.start(cmd, args);
#endif
#ifdef Q_OS_LINUX
archProcess.start("gzip -df " + path + "/deCONZ.tar.gz");
Expand Down

0 comments on commit 2052ff9

Please sign in to comment.