@@ -80,6 +80,8 @@ QgsProjectProperties::QgsProjectProperties( QgsMapCanvas* mapCanvas, QWidget *pa
80
80
radManual->setChecked ( true );
81
81
}
82
82
83
+ cbxAbsolutePath->setChecked ( QgsProject::instance ()->readBoolEntry ( " Paths" , " /Absolute" , true ) );
84
+
83
85
int dp = QgsProject::instance ()->readNumEntry ( " PositionPrecision" , " /DecimalPlaces" );
84
86
spinBoxDP->setValue ( dp );
85
87
@@ -274,14 +276,13 @@ void QgsProjectProperties::apply()
274
276
// number of decimal places for the manual option
275
277
// Note. Qt 3.2.3 and greater have a function selectedId() that
276
278
// can be used instead of the two part technique here
277
- if ( radAutomatic->isChecked () )
278
- QgsProject::instance ()->writeEntry ( " PositionPrecision" , " /Automatic" , true );
279
- else
280
- QgsProject::instance ()->writeEntry ( " PositionPrecision" , " /Automatic" , false );
279
+ QgsProject::instance ()->writeEntry ( " PositionPrecision" , " /Automatic" , radAutomatic->isChecked () );
281
280
QgsProject::instance ()->writeEntry ( " PositionPrecision" , " /DecimalPlaces" , spinBoxDP->value () );
282
281
// Announce that we may have a new display precision setting
283
282
emit displayPrecisionChanged ();
284
283
284
+ QgsProject::instance ()->writeEntry ( " Paths" , " /Absolute" , cbxAbsolutePath->isChecked () );
285
+
285
286
// set the colour for selections
286
287
QColor myColour = pbnSelectionColour->color ();
287
288
QgsProject::instance ()->writeEntry ( " Gui" , " /SelectionColorRedPart" , myColour.red () );
0 commit comments