Use exact filter when jumping to referenced row

Ctrl+Shift+Click jumps from a foreign key cell to its referenced row in the
other table. It is only exactly one row if we filter for equality. It will
be also faster.
This commit is contained in:
mgrojo
2018-07-17 23:24:25 +02:00
parent 7a9f310778
commit d50a27ab6e

View File

@@ -2723,7 +2723,7 @@ void MainWindow::jumpToRow(const sqlb::ObjectIdentifier& table, QString column,
populateTable();
// Set filter
ui->dataTable->filterHeader()->setFilter(column_index+1, value);
ui->dataTable->filterHeader()->setFilter(column_index+1, "=" + value);
}
void MainWindow::showDataColumnPopupMenu(const QPoint& pos)