From fb8814729ad555d249797a45c751be46e447af27 Mon Sep 17 00:00:00 2001 From: Milos Subotic Date: Thu, 24 Dec 2015 12:11:01 +0100 Subject: [PATCH] Unquoting text pasted from clipboard in Browse Data table. --- src/ExtendedTableWidget.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/ExtendedTableWidget.cpp b/src/ExtendedTableWidget.cpp index bfebbf6a..d2f1650e 100644 --- a/src/ExtendedTableWidget.cpp +++ b/src/ExtendedTableWidget.cpp @@ -158,7 +158,15 @@ void ExtendedTableWidget::paste() int column = firstColumn; foreach(const QString& cell, clipboardRow) { - m->setData(m->index(row, column), cell); + if(cell.startsWith('"') && cell.endsWith('"')) + { + QString unquatedCell = cell.mid(1, cell.length()-2); + m->setData(m->index(row, column), unquatedCell); + } + else + { + m->setData(m->index(row, column), cell); + } column++; if(column> lastColumn)