From 74c621cde50f1a9991e7f17cb8e70179b2eb0127 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Mon, 2 Nov 2020 00:36:57 +0100 Subject: [PATCH] ui/updater: Set modal flag after hiding the dialog This fixes a bug with older Qt versions which would not remove the modal window from the parent in the setModal() call, resulting in an unusable parent window. Fixes #368 --- source/ui/ui-updater.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ui/ui-updater.cpp b/source/ui/ui-updater.cpp index 001a955f..7f3151d2 100644 --- a/source/ui/ui-updater.cpp +++ b/source/ui/ui-updater.cpp @@ -109,8 +109,8 @@ void streamfx::ui::updater_dialog::show(streamfx::update_info current, streamfx: void streamfx::ui::updater_dialog::hide() { - this->setModal(false); QDialog::hide(); + this->setModal(false); } void streamfx::ui::updater_dialog::on_ok()