Make the Edit Cell Dock to update with the selected cell in SQL results

The same connection done for the Browse Data table is done for the SQL
results table so they behave in the same way.

See issue #481
This commit is contained in:
mgrojo
2018-12-28 18:11:44 +01:00
parent a9de3d87e3
commit 1925ccfd37

View File

@@ -1507,7 +1507,7 @@ void MainWindow::executeQuery()
disconnect(*conn);
attachPlot(sqlWidget->getTableResult(), sqlWidget->getModel());
connect(sqlWidget->getTableResult(), &ExtendedTableWidget::activated, this, &MainWindow::dataTableSelectionChanged);
connect(sqlWidget->getTableResult()->selectionModel(), SIGNAL(currentChanged(QModelIndex,QModelIndex)), this, SLOT(dataTableSelectionChanged(QModelIndex)));
connect(sqlWidget->getTableResult(), &QTableView::doubleClicked, this, &MainWindow::doubleClickTable);
auto time_end = std::chrono::high_resolution_clock::now();