summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-21 15:51:41 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-21 15:51:41 -0800
commitd4563e54a95ebb1c4464e47d9aab36610819bd4b (patch)
tree454d6a7624dc855b317e4af9f18f447cac84323c
parent60a5d1d07056887ab9aa1c9468db64b4c7850401 (diff)
downloadsubsurface-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.cpp2
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;