mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
Merge branch 'bugfix-ground'
This commit is contained in:
commit
225834ccb4
@ -6,10 +6,10 @@ SUBDIRS = \
|
||||
qtconcurrent \
|
||||
aggregation \
|
||||
extensionsystem \
|
||||
utils \
|
||||
opmapcontrol \
|
||||
qwt \
|
||||
qextserialport \
|
||||
utils \
|
||||
glc_lib\
|
||||
sdlgamepad \
|
||||
libqxt
|
||||
|
@ -7,3 +7,4 @@ TEMPLATE = lib
|
||||
UI_DIR = uics
|
||||
MOC_DIR = mocs
|
||||
OBJECTS_DIR = objs
|
||||
INCLUDEPATH +=../../../../libs/
|
||||
|
@ -25,6 +25,7 @@
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
#include "cache.h"
|
||||
#include "utils/pathutils.h"
|
||||
#include <QSettings>
|
||||
|
||||
namespace core {
|
||||
@ -53,11 +54,7 @@ namespace core {
|
||||
{
|
||||
if(cache.isNull()|cache.isEmpty())
|
||||
{
|
||||
QSettings set(QSettings::IniFormat, QSettings::UserScope,QLatin1String("OpenPilot"), QLatin1String("OpenPilotGCS"));
|
||||
QDir dir(set.fileName());
|
||||
QFileInfo f(dir.absolutePath());
|
||||
f.dir().absolutePath();
|
||||
cache=f.dir().absolutePath()+QDir::separator()+"mapscache"+QDir::separator();
|
||||
cache= Utils::PathUtils().GetStoragePath()+"mapscache"+QDir::separator();
|
||||
setCacheLocation(cache);
|
||||
}
|
||||
}
|
||||
|
@ -15,11 +15,15 @@ SOURCES += mapgraphicitem.cpp \
|
||||
mapripform.cpp \
|
||||
mapripper.cpp \
|
||||
traillineitem.cpp
|
||||
|
||||
LIBS += -L../build \
|
||||
-lcore \
|
||||
-linternals \
|
||||
-lcore
|
||||
|
||||
# order of linking matters
|
||||
include(../../../utils/utils.pri)
|
||||
|
||||
POST_TARGETDEPS += ../build/libcore.a
|
||||
POST_TARGETDEPS += ../build/libinternals.a
|
||||
|
||||
|
@ -1 +1 @@
|
||||
LIBS *= -l$$qtLibraryTarget(Utils)
|
||||
LIBS += -l$$qtLibraryTarget(Utils)
|
||||
|
Loading…
x
Reference in New Issue
Block a user