From 34073a6f9e885cfdde2feb67919666eeaa06dd87 Mon Sep 17 00:00:00 2001 From: "craig.p.drummond" Date: Wed, 27 Feb 2013 19:40:40 +0000 Subject: [PATCH] Work-around overlay scrollbar issues with modal dialogs --- support/messagebox.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/support/messagebox.cpp b/support/messagebox.cpp index 5045f060c..b6771ad94 100644 --- a/support/messagebox.cpp +++ b/support/messagebox.cpp @@ -93,5 +93,13 @@ void MessageBox::failedList(QWidget *parent, const QString &message, const QStri lay->addWidget(list, 1, 0, 1, 2); list->insertItems(0, strlist); dlg->setMainWidget(wid); + QWidget *win=parent ? parent->window() : 0; + bool wasGl=win ? win->testAttribute(Qt::WA_GroupLeader) : false; + if (win && !wasGl) { + win->setAttribute(Qt::WA_GroupLeader, true); + } dlg->exec(); + if (win && !wasGl) { + win->setAttribute(Qt::WA_GroupLeader, false); + } }