diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-11-21 15:51:41 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-11-21 15:51:41 -0800 |
commit | d4563e54a95ebb1c4464e47d9aab36610819bd4b (patch) | |
tree | 454d6a7624dc855b317e4af9f18f447cac84323c | |
parent | 60a5d1d07056887ab9aa1c9468db64b4c7850401 (diff) | |
download | subsurface-d4563e54a95ebb1c4464e47d9aab36610819bd4b.tar.gz |
Try to get Windwos to find the plugins
This way the application path (i.e., install directory) will be searched
for plugin DLLs.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qt-gui.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp index c868f6648..57e410865 100644 --- a/qt-gui.cpp +++ b/qt-gui.cpp @@ -83,6 +83,8 @@ void init_ui(int *argcp, char ***argvp) QCoreApplication::setOrganizationName("Subsurface"); QCoreApplication::setOrganizationDomain("subsurface.hohndel.org"); QCoreApplication::setApplicationName("Subsurface"); + // find plugins installed in the application directory (without this SVGs don't work on Windows) + QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath()); xslt_path = strdup(getSubsurfaceDataPath("xslt").toAscii().data()); QLocale loc; |