CLIProcessor.cpp   CLIProcessor.cpp 
skipping to change at line 298 skipping to change at line 298
{ {
try try
{ {
StelFileMgr::setScreenshotDir(confScreenshot Dir); StelFileMgr::setScreenshotDir(confScreenshot Dir);
} }
catch (std::runtime_error& e) catch (std::runtime_error& e)
{ {
qWarning() << "WARNING: problem while settin g screenshot from config file setting: " << e.what(); qWarning() << "WARNING: problem while settin g screenshot from config file setting: " << e.what();
} }
} }
else
{
QString screenshotDirSuffix = "/Stellarium";
if (!QStandardPaths::standardLocations(QStandardPath
s::PicturesLocation).isEmpty())
screenshotDir = QStandardPaths::standardLoca
tions(QStandardPaths::PicturesLocation)[0].append(screenshotDirSuffix);
else
screenshotDir = StelFileMgr::getUserDir().ap
pend(screenshotDirSuffix);
try
{
StelFileMgr::setScreenshotDir(screenshotDir)
;
confSettings->setValue("main/screenshot_dir"
, screenshotDir);
}
catch (std::runtime_error &e)
{
qDebug("Error: cannot create screenshot dire
ctory: %s", e.what());
}
}
} }
#ifdef ENABLE_SPOUT #ifdef ENABLE_SPOUT
if (!spoutStr.isEmpty()) if (!spoutStr.isEmpty())
{ {
if (spoutStr=="all") if (spoutStr=="all")
qApp->setProperty("spout", "all"); qApp->setProperty("spout", "all");
else else
qApp->setProperty("spout", "sky"); qApp->setProperty("spout", "sky");
} }
 End of changes. 1 change blocks. 
24 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/