mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
TagPanel: clear text after pressing return in the completion list
This commit is contained in:
parent
231f318259
commit
2e2f67ced4
@ -84,7 +84,9 @@ void VTagPanel::setupUI()
|
||||
g_mainWin->showStatusMessage(tr("Tag \"%1\" added").arg(text));
|
||||
}
|
||||
|
||||
m_tagEdit->clear();
|
||||
// Clear after a wait since it may be triggered by the completion.
|
||||
// The activated() of completion will add text to the edit.
|
||||
QTimer::singleShot(100, m_tagEdit, SLOT(clear()));
|
||||
});
|
||||
|
||||
QValidator *validator = new QRegExpValidator(QRegExp("[^,]+"), m_tagEdit);
|
||||
|
Loading…
x
Reference in New Issue
Block a user