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>
This commit is contained in:
parent
82f216faa0
commit
c70ba77199
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user