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 autocomplete to be less aggressive in the font dropdown.
Wolthera van Hövell tot Westerfliercc294cad7493
diff --git a/qmlmodules/components/qml/ResourcePopup.qml b/qmlmodules/components/qml/ResourcePopup.qmlindex a611de5bdd..ac8986caab 100644--- a/qmlmodules/components/qml/ResourcePopup.qml+++ b/qmlmodules/components/qml/ResourcePopup.qml@@ -102,11 +102,11 @@ Button {completerView.applyHighlightedIndex();}- testInput();+ testInput(true);resourceCmb.activated();}onTextChanged: {- testInput();+ testInput(false);}onTextEdited: {@@ -124,7 +124,7 @@ Button {warningTimeOut: activeFocus? 1000: 0;- function testInput() {+ function testInput(adjustInput) {let test = resourceCmb.useFileName? modelWrapper.testFileName(text): modelWrapper.testName(text);if (typeof test === 'undefined') {@@ -133,11 +133,13 @@ Button {}} else {stopWarning();- text = test;- if (resourceCmb.useFileName) {- modelWrapper.resourceFilename = text;- } else {- modelWrapper.resourceName = text;+ if (adjustInput) {+ text = test;+ if (resourceCmb.useFileName) {+ modelWrapper.resourceFilename = text;+ } else {+ modelWrapper.resourceName = text;+ }}}}