Permalink
Browse files

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.
  • Loading branch information...
mgrojo committed Jul 17, 2018
1 parent 7a9f310 commit d50a27ab6e47002cbf09d45529e7c21ea390a7c5
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/MainWindow.cpp
@@ -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)

0 comments on commit d50a27a

Please sign in to comment.