Several improvements to tags editing
* Fix #7602 - Allow spaces in tag names * Fix #7528 - Allow pasting text into the tags field. Text is split by comma creating tags for each section of text. If there are no commas then the pasted text becomes a tag. * Fix tags editing not causing the entry to be marked as modified.
This commit is contained in:
@@ -192,7 +192,7 @@ QString Entry::tags() const
|
||||
|
||||
QStringList Entry::tagList() const
|
||||
{
|
||||
static QRegExp rx("(\\ |\\,|\\t|\\;)");
|
||||
static QRegExp rx("(\\,|\\t|\\;)");
|
||||
auto taglist = tags().split(rx, QString::SkipEmptyParts);
|
||||
std::sort(taglist.begin(), taglist.end());
|
||||
return taglist;
|
||||
|
||||
Reference in New Issue
Block a user