Skip to content

Commit 44b5726

Browse files
committed
Fix path quote bug
1 parent 8491e7b commit 44b5726

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/config/AppConfig.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
#include "ConfigIO.h"
44
#include "utils/Common.h"
55

6+
#define ENCLOSE_QUOTES(x) "\"" + x + "\""
7+
68
#define DEFINE_KEY(name, defaultValue) \
79
definitions[name] = QVariant(defaultValue);
810

@@ -33,9 +35,9 @@ AppConfig::AppConfig()
3335

3436
DEFINE_KEY(AeqPlotDarkMode, false);
3537

36-
DEFINE_KEY(ConvolverDefaultPath, getPath("irs"));
37-
DEFINE_KEY(VdcDefaultPath, getPath("vdc"));
38-
DEFINE_KEY(LiveprogDefaultPath, getPath("liveprog"));
38+
DEFINE_KEY(ConvolverDefaultPath, ENCLOSE_QUOTES(getPath("irs")));
39+
DEFINE_KEY(VdcDefaultPath, ENCLOSE_QUOTES(getPath("vdc")));
40+
DEFINE_KEY(LiveprogDefaultPath, ENCLOSE_QUOTES(getPath("liveprog")));
3941

4042
connect(this, &AppConfig::updated, this, &AppConfig::notify);
4143

0 commit comments

Comments
 (0)