From 634df1a337f61f2b7fa7cb6195ac680411c620e2 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 10 Jul 2014 09:24:57 -0700 Subject: [PATCH] Tags can never include a comma And no, I don't want "\," to be legal in our tag, either. Way too much pain for way too little gain. Fixes #560 Signed-off-by: Dirk Hohndel --- qt-ui/groupedlineedit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt-ui/groupedlineedit.cpp b/qt-ui/groupedlineedit.cpp index 38f75cad8..25488a95c 100644 --- a/qt-ui/groupedlineedit.cpp +++ b/qt-ui/groupedlineedit.cpp @@ -86,7 +86,7 @@ void GroupedLineEdit::addBlock(int start, int end) Private::Block block; block.start = start; block.end = end; - block.text = text().mid(start, end - start + 1).trimmed(); + block.text = text().mid(start, end - start + 1).remove(',').trimmed(); d->blocks.append(block); viewport()->update(); }