summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-11 12:56:45 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-11 12:56:45 (GMT)
commitab6be7bbd4a22fec4796530d1f17be3534487c72 (patch)
tree0de61c606c431abce9d3dd0126927a2a1bc4acab
parentddb83b14269784f9ac22f262f1a33eeb190821fd (diff)
Use QStandardPaths to find INDI paths
-rw-r--r--kstars/indi/drivermanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/kstars/indi/drivermanager.cpp b/kstars/indi/drivermanager.cpp
index 58c0f94..2d94d7e 100644
--- a/kstars/indi/drivermanager.cpp
+++ b/kstars/indi/drivermanager.cpp
@@ -125,8 +125,9 @@ DriverManager::DriverManager(QWidget *parent)
QObject::connect(ui->clientTreeWidget, SIGNAL(itemClicked(QTreeWidgetItem *, int)), this, SLOT(updateClientTab()));
QObject::connect(ui->localTreeWidget, SIGNAL(expanded(const QModelIndex &)), this, SLOT(resizeDeviceColumn()));
+ // Do not use KSPaths here, this is for INDI
if (Options::indiDriversDir().isEmpty())
- Options::setIndiDriversDir(KSPaths::locate(QStandardPaths::GenericDataLocation, "indi", QStandardPaths::LocateDirectory));
+ Options::setIndiDriversDir(QStandardPaths::locate(QStandardPaths::GenericDataLocation, "indi", QStandardPaths::LocateDirectory));
readXMLDrivers();