Merge pull request #461 from MilosSubotic/master

Unquoting text pasted from clipboard in Browse Data table.
This commit is contained in:
Martin Kleusberg
2015-12-24 13:55:17 +01:00

View File

@@ -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)