From 45c3a0480b157140233ba6eb9f320449b0d83723 Mon Sep 17 00:00:00 2001 From: eelke Date: Sat, 5 Oct 2019 16:41:14 +0200 Subject: [PATCH] The normal copy now works for SQL definition views. --- pglab/DatabaseWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pglab/DatabaseWindow.cpp b/pglab/DatabaseWindow.cpp index 4467836..fd14080 100644 --- a/pglab/DatabaseWindow.cpp +++ b/pglab/DatabaseWindow.cpp @@ -389,7 +389,7 @@ void DatabaseWindow::on_actionCopy_triggered() } else { const QMetaObject *meta = w->metaObject(); - int i = meta->indexOfSlot("copy"); + int i = meta->indexOfMethod("copy()"); if (i != -1) { QMetaMethod method = meta->method(i); method.invoke(w, Qt::AutoConnection);