summaryrefslogtreecommitdiffstats
path: root/qt-ui/groupedlineedit.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-10 09:24:57 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-10 09:25:49 -0700
commit634df1a337f61f2b7fa7cb6195ac680411c620e2 (patch)
tree3b9d546797bac879d0e07076338900680278ddd9 /qt-ui/groupedlineedit.cpp
parent38403f6c98e53490eddc77b68f8b4aefe224d261 (diff)
downloadsubsurface-634df1a337f61f2b7fa7cb6195ac680411c620e2.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/groupedlineedit.cpp')
-rw-r--r--qt-ui/groupedlineedit.cpp2
1 files changed, 1 insertions, 1 deletions
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();
}