The normal copy now works for SQL definition views. #83

Merged
eelke merged 1 commit from 61-update-index-sql-when-switching-tables into master 2019-10-06 07:31:49 +00:00

View file

@ -389,7 +389,7 @@ void DatabaseWindow::on_actionCopy_triggered()
} }
else { else {
const QMetaObject *meta = w->metaObject(); const QMetaObject *meta = w->metaObject();
int i = meta->indexOfSlot("copy"); int i = meta->indexOfMethod("copy()");
if (i != -1) { if (i != -1) {
QMetaMethod method = meta->method(i); QMetaMethod method = meta->method(i);
method.invoke(w, Qt::AutoConnection); method.invoke(w, Qt::AutoConnection);