Skip to content

Commit

Permalink
remove debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
domi4484 authored and nirvn committed Jul 23, 2024
1 parent 2b2c6e0 commit d7d5fce
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/qml/RelationCombobox.qml
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,6 @@ Item {

onActiveFocusChanged: {
searchableLabel.useCompleter = activeFocus;
iface.logMessage("onActiveFocusChanged: activeFocus=" + activeFocus);
if (activeFocus) {
if (text === '') {
if (!featureListModel.addNull || comboBox.currentIndex != 0) {
Expand All @@ -526,13 +525,11 @@ Item {
searchableLabel.completer = '';
}
} else {
iface.logMessage("onActiveFocusChanged: isLastKeyPressedReturn=%1 text=%2".arg(isLastKeyPressedReturn).arg(text));
if (!isLastKeyPressedReturn) {
if (text === '' && featureListModel.addNull) {
comboBox.currentIndex = 0;
searchableLabel.completer = comboBox.displayText;
} else {
iface.logMessage("applyAutoCompletion(true);");
applyAutoCompletion(true);
}
} else if (text !== '') {
Expand All @@ -546,7 +543,6 @@ Item {

property bool isLastKeyPressedReturn: false
Keys.onPressed: event => {
iface.logMessage("Keys.onPressed: event.key=" + event.key);
if (event.key === Qt.Key_Return || event.key === Qt.Key_Enter) {
if (!isLastKeyPressedReturn) {
applyAutoCompletion();
Expand All @@ -558,7 +554,6 @@ Item {
}

function applyAutoCompletion(resetIfNone = false) {
iface.logMessage("applyAutoCompletion: resetIfNone=" + resetIfNone);
var trimmedText = text.trim();
var matches = featureListModel.findDisplayValueMatches(trimmedText);
if (matches.length > 0) {
Expand Down

1 comment on commit d7d5fce

@qfield-fairy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.