mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
cc225a44f2
commit
c986940630
2 changed files with 4 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue