mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-19 18:40:13 -06:00
Merge pull request #461 from MilosSubotic/master
Unquoting text pasted from clipboard in Browse Data table.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user