Skip to content

Commit e67e2ed

Browse files
committed
Merge pull request #461 from MilosSubotic/master
Unquoting text pasted from clipboard in Browse Data table.
2 parents b04d52b + fb88147 commit e67e2ed

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/ExtendedTableWidget.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,15 @@ void ExtendedTableWidget::paste()
158158
int column = firstColumn;
159159
foreach(const QString& cell, clipboardRow)
160160
{
161-
m->setData(m->index(row, column), cell);
161+
if(cell.startsWith('"') && cell.endsWith('"'))
162+
{
163+
QString unquatedCell = cell.mid(1, cell.length()-2);
164+
m->setData(m->index(row, column), unquatedCell);
165+
}
166+
else
167+
{
168+
m->setData(m->index(row, column), cell);
169+
}
162170

163171
column++;
164172
if(column> lastColumn)

0 commit comments

Comments
 (0)