From d4563e54a95ebb1c4464e47d9aab36610819bd4b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 21 Nov 2013 15:51:41 -0800 Subject: 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 --- qt-gui.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3-70-g09d2