void Browser::on_revertAction_triggered() { QSqlTableModel * tm = qobject_cast<QSqlTableModel *>(table->model()); if (tm) tm->revertAll(); }