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