summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <[email protected]>2017-05-09 12:17:33 +0300
committerJasem Mutlaq <[email protected]>2017-05-09 12:17:33 +0300
commit77a3f8e8f318a73979cfdab59c5ff3823d302385 (patch)
tree890e63d1a2c9dce1d30719d9a9ab722b98ae7a6f
parentd8bf2e0a3d6911b10e30130478d0cc1980b543de (diff)
Find wiview on Windows
-rw-r--r--kstars/tools/whatsinteresting/wiview.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/kstars/tools/whatsinteresting/wiview.cpp b/kstars/tools/whatsinteresting/wiview.cpp
index 73f63a1..5a25d64 100644
--- a/kstars/tools/whatsinteresting/wiview.cpp
+++ b/kstars/tools/whatsinteresting/wiview.cpp
@@ -67,11 +67,13 @@ WIView::WIView(QWidget * parent) : QWidget(parent), m_CurrentObjectListName(-1)
///Use instead of KDeclarative
m_Ctxt->setContextObject(new KLocalizedContext(m_BaseView));
- QString WI_Location="";
- #ifdef Q_OS_OSX
+ QString WI_Location;
+ #if defined(Q_OS_OSX)
WI_Location = QCoreApplication::applicationDirPath()+"/../Resources/data/tools/whatsinteresting/qml/wiview.qml";
if(!QFileInfo(WI_Location).exists())
WI_Location = KSPaths::locate(QStandardPaths::AppDataLocation, "tools/whatsinteresting/qml/wiview.qml");
+ #elif defined(Q_OS_WIN)
+ WI_Location = KSPaths::locate(QStandardPaths::GenericDataLocation, "tools/whatsinteresting/qml/wiview.qml");
#else
WI_Location = KSPaths::locate(QStandardPaths::AppDataLocation, "tools/whatsinteresting/qml/wiview.qml");
#endif