Revert "Preserve format in Copy Create Statement"

This reverts commit d1261146b3.
This commit is contained in:
mgrojo
2018-01-18 20:35:08 +01:00
parent e9385e6f8b
commit 6a8c2e7a57

View File

@@ -2391,7 +2391,7 @@ void MainWindow::copyCurrentCreateStatement()
return;
// Get the CREATE statement from the Schema column
QString stmt = ui->dbTreeWidget->model()->data(ui->dbTreeWidget->currentIndex().sibling(ui->dbTreeWidget->currentIndex().row(), 3), Qt::EditRole).toString();
QString stmt = ui->dbTreeWidget->model()->data(ui->dbTreeWidget->currentIndex().sibling(ui->dbTreeWidget->currentIndex().row(), 3)).toString();
// Copy the statement to the global application clipboard
QApplication::clipboard()->setText(stmt);