Skip to content

Commit

Permalink
Make the Edit Cell Dock to update with the selected cell in SQL results
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mgrojo committed Dec 28, 2018
1 parent a9de3d8 commit 1925ccf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MainWindow.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 1925ccf

Please sign in to comment.