aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-05-21 13:00:16 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-22 07:31:51 +0900
commit3c7a6ab7506ac311fdf9bfdf5fe70082bf2f7689 (patch)
tree6280609c210464d40374711cfc68326a3d33753e
parent1988da779f479e90b2d3f971ba6099f04475cc70 (diff)
downloadsubsurface-3c7a6ab7506ac311fdf9bfdf5fe70082bf2f7689.tar.gz
Don't replot every time a pref changes, regardless of what preferences.
The list of preferences that should trigger a full repaint are at the top of this method, *if* this introduces a bug it is because some of the preferences are not being correctly triaged yet and that needs to be fixed. Regardless of that, now the profile will only enable / disable the *ruler* instead of replotting everything. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/profile/profilewidget2.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index d222ad940..fbbf3df19 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -501,7 +501,6 @@ void ProfileWidget2::settingsChanged()
if (currentState == PROFILE) {
rulerItem->setVisible(prefs.rulergraph);
- needReplot = true;
} else {
rulerItem->setVisible(false);
}