summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-08-18 07:17:35 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-08-18 07:17:35 (GMT)
commit31790263f2f1adf4c80ec214c4b8660eda56a0e4 (patch)
tree19d47b9f7d2ff5d8866de43625d77b2a1afc2cc2
parent9658f6bd53870ab8c7c2a0894b35741a099b81aa (diff)
Use GenericDataLocation
-rw-r--r--kstars/auxiliary/ksfilereader.h4
-rw-r--r--kstars/tools/observinglist.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/kstars/auxiliary/ksfilereader.h b/kstars/auxiliary/ksfilereader.h
index 04ddbab..c5487b1 100644
--- a/kstars/auxiliary/ksfilereader.h
+++ b/kstars/auxiliary/ksfilereader.h
@@ -82,7 +82,7 @@ public:
*/
explicit KSFileReader( QFile& file, qint64 maxLen=1024 );
- /** @short opens the file fname from the QStandardPaths::DataLocation directory and uses that
+ /** @short opens the file fname from the QStandardPaths::GenericDataLocation directory and uses that
* file for the QTextStream.
*
* @param fname the name of the file to open
@@ -92,7 +92,7 @@ public:
bool open( const QString& fname );
/** @short opens the file with full path fname and uses that
- * file for the QTextStream. open() locates QStandardPaths::DataLocation behind the scenes,
+ * file for the QTextStream. open() locates QStandardPaths::GenericDataLocation behind the scenes,
* so passing fname such that
* QString fname = KSPaths::locate(QStandardPaths::GenericDataLocation, "file_name" );
* is equivalent
diff --git a/kstars/tools/observinglist.cpp b/kstars/tools/observinglist.cpp
index b20b7ff..7a98f80 100644
--- a/kstars/tools/observinglist.cpp
+++ b/kstars/tools/observinglist.cpp
@@ -1193,7 +1193,7 @@ void ObservingList::setCurrentImage( const SkyObject *o ) {
QChar decsgn = ( (o->dec0().Degrees() < 0.0 ) ? '-' : '+' );
CurrentImage = CurrentImage.remove('+').remove('-') + decsgn;
}
- CurrentImagePath = KSPaths::locate( QStandardPaths::DataLocation , CurrentImage );
+ CurrentImagePath = KSPaths::locate( QStandardPaths::GenericDataLocation , CurrentImage );
DSSUrl = KSDssDownloader::getDSSURL( o );
// QString UrlPrefix("http://casjobs.sdss.org/ImgCutoutDR6/getjpeg.aspx?"); // FIXME: Upgrade to use SDSS Data Release 9 / 10. DR6 is well outdated.
// QString UrlSuffix("&scale=1.0&width=600&height=600&opt=GST&query=SR(10,20)");