Commit b18c5c79 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

qt: dialogs: Use the correct type for progress context

This seems to fix #18640 and #17060

(cherry picked from commit 90dde5ed)
Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 65c88922
...@@ -167,14 +167,11 @@ void DialogHandler::cancel(vlc_dialog_id *p_id) ...@@ -167,14 +167,11 @@ void DialogHandler::cancel(vlc_dialog_id *p_id)
void DialogHandler::updateProgress(vlc_dialog_id *p_id, float f_value, void DialogHandler::updateProgress(vlc_dialog_id *p_id, float f_value,
const QString &text) const QString &text)
{ {
DialogWrapper *p_wrapper = ProgressDialogWrapper *p_wrapper =
static_cast<DialogWrapper *>(vlc_dialog_id_get_context(p_id)); static_cast<ProgressDialogWrapper *>(vlc_dialog_id_get_context(p_id));
ProgressDialogWrapper *p_progress_wrapper if (p_wrapper != NULL)
= dynamic_cast<ProgressDialogWrapper *>(p_wrapper); p_wrapper->updateProgress(f_value, text);
if (p_progress_wrapper != NULL)
p_progress_wrapper->updateProgress(f_value, text);
} }
void DialogHandler::displayError(const QString &title, const QString &text) void DialogHandler::displayError(const QString &title, const QString &text)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment