From fd42cfb2df4a5d284e7bae94e568a511374c21b6 Mon Sep 17 00:00:00 2001 From: Aoun Ahmed <8854954-learner99@users.noreply.gitlab.com> Date: Wed, 12 May 2021 10:03:24 +0000 Subject: [PATCH] Patch for "XML pop-up does not close" by updating src/ui/dialog/attrdialog.cpp --- src/ui/dialog/attrdialog.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui/dialog/attrdialog.cpp b/src/ui/dialog/attrdialog.cpp index e488ee45f2..24c3f988f8 100644 --- a/src/ui/dialog/attrdialog.cpp +++ b/src/ui/dialog/attrdialog.cpp @@ -412,6 +412,9 @@ void AttrDialog::setRepr(Inkscape::XML::Node * repr) bool show_content = is_text_or_comment_node(*_repr); _scrolledWindow.set_visible(!show_content); _content_sw->set_visible(show_content); + } else { + // if repr is null or none of the attributes selected, then hide popover + AttrDialog::valueCanceledPop(); } } -- GitLab