mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Preserve profile toggle-button state zoomed_plot across sessions.
Fixes #912 Signed-off-by: K. Heller <pestophagous@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4f287b6f80
commit
e522dd1a68
2 changed files with 8 additions and 2 deletions
|
@ -75,7 +75,7 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) : QGraphicsView(parent),
|
|||
background(new DivePixmapItem()),
|
||||
backgroundFile(":poster"),
|
||||
toolTipItem(new ToolTipItem()),
|
||||
isPlotZoomed(prefs.zoomed_plot),
|
||||
isPlotZoomed(prefs.zoomed_plot),// no! bad use of prefs. 'PreferencesDialog::loadSettings' NOT CALLED yet.
|
||||
profileYAxis(new DepthAxis()),
|
||||
gasYAxis(new PartialGasPressureAxis()),
|
||||
temperatureAxis(new TemperatureAxis()),
|
||||
|
@ -111,6 +111,9 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) : QGraphicsView(parent),
|
|||
shouldCalculateMaxDepth(true),
|
||||
fontPrintScale(1.0)
|
||||
{
|
||||
// would like to be able to ASSERT here that PreferencesDialog::loadSettings has been called.
|
||||
isPlotZoomed = prefs.zoomed_plot; // now it seems that 'prefs' has loaded our preferences
|
||||
|
||||
memset(&plotInfo, 0, sizeof(plotInfo));
|
||||
|
||||
setupSceneAndFlags();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue