Some rudementary refresh support in crud tab bound to execute action (should be replaced with dynamic action list on form)
This commit is contained in:
parent
914d2fe9fa
commit
ad3f605ada
5 changed files with 16 additions and 5 deletions
|
|
@ -181,6 +181,14 @@ void MainWindow::on_actionExecute_SQL_triggered()
|
|||
if (tab) {
|
||||
tab->execute();
|
||||
}
|
||||
else {
|
||||
QWidget *widget = ui->tabWidget->currentWidget();
|
||||
CrudTab *ct = dynamic_cast<CrudTab*>(widget);
|
||||
if (ct) {
|
||||
ct->refresh();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::on_actionExplain_triggered()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue