Kaydet (Commit) c1816fea authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#125394 consider unwelded dialogs

Change-Id: Ic66a622bb8b5481656ffe8e29a345a435042402e
Reviewed-on: https://gerrit.libreoffice.org/72625
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst c278c1cf
......@@ -1445,6 +1445,8 @@ vcl::Window* Dialog::get_widget_for_response(int response)
//copy explicit responses
std::map<VclPtr<vcl::Window>, short> aResponses(mpDialogImpl->maResponses);
if (mpActionArea)
{
//add implicit responses
for (vcl::Window* pChild = mpActionArea->GetWindow(GetWindowType::FirstChild); pChild;
pChild = pChild->GetWindow(GetWindowType::Next))
......@@ -1466,6 +1468,7 @@ vcl::Window* Dialog::get_widget_for_response(int response)
break;
}
}
}
for (auto& a : aResponses)
{
......@@ -1481,6 +1484,8 @@ int Dialog::get_default_response()
//copy explicit responses
std::map<VclPtr<vcl::Window>, short> aResponses(mpDialogImpl->maResponses);
if (mpActionArea)
{
//add implicit responses
for (vcl::Window* pChild = mpActionArea->GetWindow(GetWindowType::FirstChild); pChild;
pChild = pChild->GetWindow(GetWindowType::Next))
......@@ -1502,6 +1507,7 @@ int Dialog::get_default_response()
break;
}
}
}
for (auto& a : aResponses)
{
......@@ -1518,6 +1524,8 @@ void Dialog::set_default_response(int response)
//copy explicit responses
std::map<VclPtr<vcl::Window>, short> aResponses(mpDialogImpl->maResponses);
if (mpActionArea)
{
//add implicit responses
for (vcl::Window* pChild = mpActionArea->GetWindow(GetWindowType::FirstChild); pChild;
pChild = pChild->GetWindow(GetWindowType::Next))
......@@ -1539,6 +1547,7 @@ void Dialog::set_default_response(int response)
break;
}
}
}
for (auto& a : aResponses)
{
......
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