Skip to content

Commit

Permalink
Simulation Experiment view: make sure that we always update ourselves…
Browse files Browse the repository at this point in the history
… when our enabled state changes.
  • Loading branch information
agarny committed Nov 27, 2019
1 parent 24abad8 commit 18a77b6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -651,7 +651,7 @@ void SimulationExperimentViewSimulationWidget::changeEvent(QEvent *pEvent)
// update our output widget while keeping its scrollbars, if any, still at
// the same position

if (isVisible() && (pEvent->type() == QEvent::EnabledChange)) {
if (pEvent->type() == QEvent::EnabledChange) {
int horizontalSliderPosition = mOutputWidget->horizontalScrollBar()->sliderPosition();
int verticalSliderPosition = mOutputWidget->verticalScrollBar()->sliderPosition();

Expand Down

0 comments on commit 18a77b6

Please sign in to comment.