CompassMarks.cpp   CompassMarks.cpp 
skipping to change at line 197 skipping to change at line 197
if (b) if (b)
{ {
// Save the display state of the cardinal points and hide th em. // Save the display state of the cardinal points and hide th em.
cardinalPointsState = GETSTELMODULE(LandscapeMgr)->getFlagCa rdinalsPoints(); cardinalPointsState = GETSTELMODULE(LandscapeMgr)->getFlagCa rdinalsPoints();
GETSTELMODULE(LandscapeMgr)->setFlagCardinalsPoints(false); GETSTELMODULE(LandscapeMgr)->setFlagCardinalsPoints(false);
} else { } else {
// Restore the cardinal points state. // Restore the cardinal points state.
GETSTELMODULE(LandscapeMgr)->setFlagCardinalsPoints(cardinal PointsState); GETSTELMODULE(LandscapeMgr)->setFlagCardinalsPoints(cardinal PointsState);
} }
markFader = b; markFader = b;
// autosaving the state by default
displayedAtStartup = b;
saveConfiguration();
emit compassMarksChanged(b); emit compassMarksChanged(b);
} }
void CompassMarks::loadConfiguration() void CompassMarks::loadConfiguration()
{ {
Q_ASSERT(conf); Q_ASSERT(conf);
conf->beginGroup("CompassMarks"); conf->beginGroup("CompassMarks");
markColor = StelUtils::strToVec3f(conf->value("mark_color", "1,0,0") .toString()); markColor = StelUtils::strToVec3f(conf->value("mark_color", "1,0,0") .toString());
font.setPixelSize(conf->value("font_size", 10).toInt()); font.setPixelSize(conf->value("font_size", 10).toInt());
displayedAtStartup = conf->value("enable_at_startup", false).toBool( ); displayedAtStartup = conf->value("enable_at_startup", false).toBool( );
 End of changes. 1 change blocks. 
0 lines changed or deleted 3 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/