Skip to content

Commit

Permalink
When opening a new file, load a frame before updating dialogs.
Browse files Browse the repository at this point in the history
Without this, updating the chroma decoder dialogue emits an event which
causes the other main window displays to be updated -- and some of them
(e.g. the scope) expect a frame to be loaded.
  • Loading branch information
atsampson authored and simoninns committed Jun 6, 2022
1 parent fc975ee commit bb94e31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/ld-analyse/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,13 +229,13 @@ void MainWindow::updateGuiLoaded()
ui->aspectPushButton->setText(tr(Aspect::DAR_169_S));
}

// Load and show the current frame
showFrame();

// Update the chroma decoder configuration dialogue
chromaDecoderConfigDialog->setConfiguration(tbcSource.getSystem(), tbcSource.getPalConfiguration(),
tbcSource.getNtscConfiguration(), tbcSource.getOutputConfiguration());

// Show the current frame
showFrame();

// Ensure the busy dialogue is hidden
busyDialog->hide();
}
Expand Down

0 comments on commit bb94e31

Please sign in to comment.