mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
Revert change for opmaplib, causes linking problems on Windows.
This commit is contained in:
parent
262cc805b0
commit
822017953e
@ -7,4 +7,3 @@ TEMPLATE = lib
|
||||
UI_DIR = uics
|
||||
MOC_DIR = mocs
|
||||
OBJECTS_DIR = objs
|
||||
INCLUDEPATH +=../../../../libs/
|
||||
|
@ -25,7 +25,6 @@
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
#include "cache.h"
|
||||
#include "utils/pathutils.h"
|
||||
#include <QSettings>
|
||||
|
||||
namespace core {
|
||||
@ -54,7 +53,11 @@ namespace core {
|
||||
{
|
||||
if(cache.isNull()|cache.isEmpty())
|
||||
{
|
||||
cache= Utils::PathUtils().GetStoragePath()+"mapscache"+QDir::separator();
|
||||
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();
|
||||
setCacheLocation(cache);
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,5 @@
|
||||
include (../common.pri)
|
||||
|
||||
include(../../../utils/utils.pri)
|
||||
|
||||
|
||||
SOURCES += opmaps.cpp \
|
||||
pureimagecache.cpp \
|
||||
pureimage.cpp \
|
||||
|
Loading…
x
Reference in New Issue
Block a user