Skip to content

Commit

Permalink
Gui: [skip ci] set working directory when using QUiLoader so it can f…
Browse files Browse the repository at this point in the history
…ind its resources
  • Loading branch information
wwmayer committed Jun 2, 2020
1 parent c5193ec commit fa7ae69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Gui/PropertyPage.cpp
Expand Up @@ -119,6 +119,7 @@ PreferenceUiForm::PreferenceUiForm(const QString& fn, QWidget* parent)
#if QT_VERSION >= 0x040500
loader.setLanguageChangeEnabled(true);
#endif
loader.setWorkingDirectory(QFileInfo(fn).absolutePath());
QFile file(fn);
if (file.open(QFile::ReadOnly))
form = loader.load(&file, this);
Expand Down

0 comments on commit fa7ae69

Please sign in to comment.