Skip to content

Commit

Permalink
Don't process events when recreating user charts
Browse files Browse the repository at this point in the history
.. it was always rather dodgy, but caused issues when charts
   recreated on config changed (like interacts badly with
   the setUpdatesEnabled() call.

.. has a nice effect of stopping the jarring repaints too
   which were horrible when themes changed.

Fixes #4029
  • Loading branch information
liversedge committed Aug 31, 2021
1 parent b5046f4 commit 4ddaa04
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Charts/GenericChart.cpp
Expand Up @@ -386,7 +386,17 @@ GenericChart::finaliseChart()
// stack mode. I would expect this to make things
// worse but for some reason, it solves the problem.
// do not remove !!!
QApplication::processEvents();
//
// **REMOVED 31/08/2021** as it is dangerous to do
// whilst charts are being destroyed and also
// led to a problem with events being ignored
// commented out to fix:
// https://github.com/GoldenCheetah/GoldenCheetah/issues/4029
// Could not recreate the original issue with axis
// being painted/repainted in different locations
// that this originally "resolved" so seemed save to
// remove for now.
//QApplication::processEvents();

// now initialise all the newPlots
for(int i=0; i<newPlots.count(); i++) {
Expand Down

0 comments on commit 4ddaa04

Please sign in to comment.