summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2015-01-31 22:25:28 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-31 14:07:52 -0800
commitc70ba77199ce87322402f976230402e39f6c133f (patch)
treef4bd68233afc837340ec4af24f8d8344a65bedec
parent82f216faa0fcca2d5245e6e83cf2fbe2d0af498a (diff)
downloadsubsurface-c70ba77199ce87322402f976230402e39f6c133f.tar.gz
Don't call replot when exiting cylinder combo box
Commit b72c32da7 turned off replotting while the cylinder combo box was active to speed up editing. After leaving the combo box, replotting was enabled again and a replot was called. This replot is too agressive, as it overwrites the displayed dive with the current dive and thereby resets the cyinder change. This eliminates the replot call. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/modeldelegates.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/qt-ui/modeldelegates.cpp b/qt-ui/modeldelegates.cpp
index cd195cc4f..46103ec3f 100644
--- a/qt-ui/modeldelegates.cpp
+++ b/qt-ui/modeldelegates.cpp
@@ -244,7 +244,9 @@ TankInfoDelegate::TankInfoDelegate(QObject *parent) : ComboBoxDelegate(TankInfoM
void TankInfoDelegate::reenableReplot(QWidget *widget, QAbstractItemDelegate::EndEditHint hint)
{
MainWindow::instance()->graphics()->setReplot(true);
- MainWindow::instance()->graphics()->replot();
+ // FIXME: We need to replot after a cylidner is selected but the replot below overwrites
+ // the newly selected cylinder.
+ // MainWindow::instance()->graphics()->replot();
}
void TankInfoDelegate::revertModelData(QWidget *widget, QAbstractItemDelegate::EndEditHint hint)