StelFileMgr.cpp   StelFileMgr.cpp 
skipping to change at line 136 skipping to change at line 136
// Wasn't set path to screenshots directory via --screenshot-dir? // Wasn't set path to screenshots directory via --screenshot-dir?
if (screenshotDir.isEmpty()) if (screenshotDir.isEmpty())
{ {
QString screenshotDirSuffix = "/Stellarium"; QString screenshotDirSuffix = "/Stellarium";
if (!QStandardPaths::standardLocations(QStandardPaths::Pictu resLocation).isEmpty()) if (!QStandardPaths::standardLocations(QStandardPaths::Pictu resLocation).isEmpty())
screenshotDir = QStandardPaths::standardLocations(QS tandardPaths::PicturesLocation)[0].append(screenshotDirSuffix); screenshotDir = QStandardPaths::standardLocations(QS tandardPaths::PicturesLocation)[0].append(screenshotDirSuffix);
else else
screenshotDir = userDir.append(screenshotDirSuffix); screenshotDir = userDir.append(screenshotDirSuffix);
} }
makeSureDirExistsAndIsWritable(screenshotDir); 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. 
1 lines changed or deleted 9 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/