updated on Wed Jan 11 20:01:35 UTC 2012
[aur-mirror.git] / xyscan / xyscan-3.3.1-docs.patch
blobde105a14b775f6129bf972ed6a29a1e7ad33927d
1 --- xyscanWindow.cpp.orig 2011-05-16 03:22:20.000000000 +0000
2 +++ xyscanWindow.cpp 2011-06-28 10:51:46.034524709 +0000
3 @@ -396,27 +396,9 @@
5 mHelpBrowser = 0;
7 - QString path = qApp->applicationDirPath() + "/docs";
8 + QString path = "/usr/share/doc/xyscan";
9 QDir dir(path);
10 if (!dir.exists()) {
11 - path = qApp->applicationDirPath() + "/../docs";
12 - dir.setPath(path);
13 - }
14 -#if defined(Q_OS_MAC)
15 - if (!dir.exists()) {
16 - path = qApp->applicationDirPath() + "/../Resources/docs";
17 - dir.setPath(path);
18 - }
19 -#endif
20 - //
21 - // For developing on Mac/Xcode only: avoids having to copy
22 - // the docs into the build substructure.
23 - //
24 - if (!dir.exists()) {
25 - path = "/Users/ullrich/Documents/Projects/xyscan/docs";
26 - dir.setPath(path);
27 - }
28 - if (!dir.exists()) {
29 QMessageBox::warning( 0, "xyscan",
30 tr("Cannot find the directory holding the documentation (docs). "
31 "No online help will be available. "