StelFileMgr.cpp   StelFileMgr.cpp 
skipping to change at line 126 skipping to change at line 126
{ {
qWarning() << "WARNING StelFileMgr::StelFileMgr: cou ld not find install location:" << qWarning() << "WARNING StelFileMgr::StelFileMgr: cou ld not find install location:" <<
QDir::toNativeSeparators(installLocation.fil ePath()) << " (we checked for " << QDir::toNativeSeparators(installLocation.fil ePath()) << " (we checked for " <<
QDir::toNativeSeparators(checkFile.filePath( )) << ")."; QDir::toNativeSeparators(checkFile.filePath( )) << ").";
qFatal("Couldn't find install directory location."); qFatal("Couldn't find install directory location.");
} }
} }
// Then add the installation directory to the search path // Then add the installation directory to the search path
fileLocations.append(installDir); fileLocations.append(installDir);
// Wasn't set path to screenshots directory via --screenshot-dir?
if (screenshotDir.isEmpty())
{
QString screenshotDirSuffix = "/Stellarium";
if (!QStandardPaths::standardLocations(QStandardPaths::Pictu
resLocation).isEmpty())
screenshotDir = QStandardPaths::standardLocations(QS
tandardPaths::PicturesLocation)[0].append(screenshotDirSuffix);
else
screenshotDir = userDir.append(screenshotDirSuffix);
}
try
{
makeSureDirExistsAndIsWritable(screenshotDir);
}
catch (std::runtime_error &e)
{
qDebug("Error: cannot create screenshot directory: %s", e.wh
at());
}
} }
QString StelFileMgr::findFile(const QString& path, Flags flags) QString StelFileMgr::findFile(const QString& path, Flags flags)
{ {
if (path.isEmpty()) if (path.isEmpty())
{ {
qWarning() << "Empty file path"; qWarning() << "Empty file path";
return ""; return "";
} }
 End of changes. 1 change blocks. 
21 lines changed or deleted 0 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/