From 6a8c2e7a57c6301fbbef8824d88cbe2c30d09e7d Mon Sep 17 00:00:00 2001 From: mgrojo Date: Thu, 18 Jan 2018 20:35:08 +0100 Subject: [PATCH] Revert "Preserve format in Copy Create Statement" This reverts commit d1261146b394cd02bbd02f487cac1bb31bcbda6c. --- src/MainWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 5d9c0483..cb7aea68 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -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);