summaryrefslogtreecommitdiff
path: root/media-gfx/meshlab/files/2016.12/0001-update-1.3.3-pluginmanager.patch.patch
blob: 9f6d7487817fea7a10c14e7d3442b9c2de9fdb77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From 6310a419f2a0e0f11f59a60fee850a1b64c2f41e Mon Sep 17 00:00:00 2001
From: Sobhan Mohammadpour <www.sobhan.mohammadpour@gmail.com>
Date: Fri, 24 Nov 2017 17:47:43 +0330
Subject: [PATCH] update 1.3.3/pluginmanager.patch

---
 common/pluginmanager.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/common/pluginmanager.cpp b/common/pluginmanager.cpp
index 5354055..551e73f 100644
--- a/common/pluginmanager.cpp
+++ b/common/pluginmanager.cpp
@@ -189,8 +189,11 @@ QString PluginManager::osDependentFileBaseName(const QString &plname)
 
 QString PluginManager::getBaseDirPath()
 {
+  #if defined(Q_OS_LINUX)
+	QDir baseDir("/usr/lib/meshlab");
+	#else
   QDir baseDir(qApp->applicationDirPath());
-
+	#endif
 #if defined(Q_OS_WIN)
   // Windows:
   // during development with visual studio binary could be in the debug/release subdir.
-- 
2.15.0