Skip to content

Commit

Permalink
fixup! (fix) Multi-line editor: accept entered text directly (clearin…
Browse files Browse the repository at this point in the history
…g not required)
  • Loading branch information
ronso0 committed Nov 1, 2024
1 parent a4330b1 commit 9c99b90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/library/dlgtrackinfomulti.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -837,12 +837,12 @@ void DlgTrackInfoMulti::slotCommentBoxIndexChanged() {
void DlgTrackInfoMulti::commentTextChanged() {
if (!txtComment->placeholderText().isNull() &&
!txtComment->toPlainText().isEmpty()) {
// The comboox has multiple values and has not been cleared yet,
// The combobox has multiple values and has not been cleared yet,
// and the user typed/pasted a text (might be a whitespace).
// Let's clear the placeholder text so we know this is new text.
txtCommentBox->blockSignals(true);
txtComment->setPlaceholderText(QString());
// The Clear item is not needed anymore, remove.
// The Clear item is not needed anymore, so remove it.
txtCommentBox->removeItem(txtCommentBox->findData(kClearItem));
txtCommentBox->blockSignals(false);
}
Expand Down

0 comments on commit 9c99b90

Please sign in to comment.