summarylogtreecommitdiffstats
path: root/xyscan-3.3.3-docs.patch
blob: de105a14b775f6129bf972ed6a29a1e7ad33927d (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
30
31
--- xyscanWindow.cpp.orig	2011-05-16 03:22:20.000000000 +0000
+++ xyscanWindow.cpp	2011-06-28 10:51:46.034524709 +0000
@@ -396,27 +396,9 @@
 {
     mHelpBrowser = 0;
 
-    QString path = qApp->applicationDirPath() + "/docs";
+    QString path = "/usr/share/doc/xyscan";
     QDir dir(path);
     if (!dir.exists()) {
-        path = qApp->applicationDirPath() + "/../docs";
-        dir.setPath(path);
-    }
-#if defined(Q_OS_MAC)   
-    if (!dir.exists()) {
-        path = qApp->applicationDirPath() + "/../Resources/docs";
-        dir.setPath(path);
-    }
-#endif
-    //
-    //  For developing on Mac/Xcode only: avoids having to copy
-    //  the docs into the build substructure.
-    //
-    if (!dir.exists()) { 
-        path = "/Users/ullrich/Documents/Projects/xyscan/docs";
-        dir.setPath(path);
-    }
-    if (!dir.exists()) {
         QMessageBox::warning( 0, "xyscan",
                              tr("Cannot find the directory holding the documentation (docs). "
                                 "No online help will be available. "