Skip to content

Commit

Permalink
Fix relative paths for Murmur -ini switch
Browse files Browse the repository at this point in the history
This ensures that the file passed to QSettings is an absolute path, to avoid issues with changing Murmur's working directory but keeping a relative ini path.

Fixes #2121
  • Loading branch information
John Marion authored and mkrautz committed Feb 23, 2016
1 parent 999b59b commit f5e03d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/murmur/Meta.cpp
Expand Up @@ -189,6 +189,7 @@ void MetaParams::read(QString fname) {
qFatal("Specified ini file %s could not be opened", qPrintable(fname));
}
qdBasePath = QFileInfo(f).absoluteDir();
fname = QFileInfo(f).absoluteFilePath();
f.close();
}
QDir::setCurrent(qdBasePath.absolutePath());
Expand Down

0 comments on commit f5e03d6

Please sign in to comment.