Profile: show correct info box for multiple DCs

Update the dive info box when toggling the chosen DC using the
keyboard. The keyboard toggle does not generate a mouse move
event, so this data was not repainted. For this, a
sub-optimization of not repainting when not moving the mouse
had to be removed. This does not impact ant performance
as 99.9999% of the calls of the repaint are caused by mouse
movement anyway.

Fixes: #1802

Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
Jan Mulder 2018-10-17 11:28:33 +02:00 committed by Dirk Hohndel
parent cc225a44f2
commit c986940630
2 changed files with 4 additions and 3 deletions

View file

@ -240,8 +240,6 @@ void ToolTipItem::refresh(const QPointF &pos)
refreshTime.start();
int time = lrint(timeAxis->valueAt(pos));
if (time == lastTime)
return;
lastTime = time;
clear();