Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Fix text tool options popup opening itself again after closing by using close polcies.

Wolthera van Hövell tot Westerflier113ee7c8960c
diff --git a/qmlmodules/components/qml/ResourcePopup.qml b/qmlmodules/components/qml/ResourcePopup.qml
index 5af72a9274..1f1739353c 100644
--- a/qmlmodules/components/qml/ResourcePopup.qml
+++ b/qmlmodules/components/qml/ResourcePopup.qml
@@ -162,7 +162,7 @@ Button {
}
onClicked: {
- if (resourceCmbPopup.visible) {
+ if (resourceCmbPopup.opened) {
resourceCmbPopup.close();
} else {
resourceView.showTagging = true;
@@ -187,6 +187,8 @@ Button {
palette: resourceCmb.palette;
+ closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent;
+
contentItem: Kis.ResourceView {
id: resourceView;
palette: resourceCmbPopup.palette;