-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathgpsbabel-0003-1.4.3-gmapbase.patch
38 lines (34 loc) · 1.17 KB
/
gpsbabel-0003-1.4.3-gmapbase.patch
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
32
33
34
35
36
37
From b2dd324446cf742faf550c117d59243ca9f7a70a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ralf=20Cors=C3=A9pius?= <[email protected]>
Date: Tue, 15 Apr 2014 05:20:16 +0200
Subject: [PATCH 3/6] gpsbabel-1.4.3-gmapbase
Pickup gmapbase.html from /usr/share/gpsbabel.
---
gui/map.cc | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/gui/map.cc b/gui/map.cc
index 23cee4d..cc0ada6 100644
--- a/gui/map.cc
+++ b/gui/map.cc
@@ -40,6 +40,10 @@
#include "appname.h"
#include "dpencode.h"
+#ifndef PKGDATADIR
+#define PKGDATADIR "/usr/share/gpsbabel"
+#endif
+
//------------------------------------------------------------------------
static QString stripDoubleQuotes(const QString s) {
QString out;
@@ -70,7 +74,8 @@ Map::Map(QWidget *parent,
connect(this,SIGNAL(loadFinished(bool)),
this,SLOT(loadFinishedX(bool)));
this->logTimeX("Start map constuctor");
- QString baseFile = QApplication::applicationDirPath() + "/gmapbase.html";
+ QString baseFile = PKGDATADIR;
+ baseFile += "/gmapbase.html";
if (!QFile(baseFile).exists()) {
QMessageBox::critical(0, appName,
tr("Missing \"gmapbase.html\" file. Check installation"));
--
2.9.3