From ddb9dfe1851a14bde084d78f0928f28b205fc433 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Wed, 29 Apr 2020 21:23:54 +0800 Subject: [PATCH] Disable copy construction of QObject subclasses --- src/gui/previewselectdialog.h | 1 + src/gui/rss/automatedrssdownloader.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/gui/previewselectdialog.h b/src/gui/previewselectdialog.h index 969a594e0..51d5a0213 100644 --- a/src/gui/previewselectdialog.h +++ b/src/gui/previewselectdialog.h @@ -48,6 +48,7 @@ class PreviewListDelegate; class PreviewSelectDialog final : public QDialog { Q_OBJECT + Q_DISABLE_COPY(PreviewSelectDialog) public: enum PreviewColumn diff --git a/src/gui/rss/automatedrssdownloader.h b/src/gui/rss/automatedrssdownloader.h index d158ecee2..0c2c3768a 100644 --- a/src/gui/rss/automatedrssdownloader.h +++ b/src/gui/rss/automatedrssdownloader.h @@ -53,6 +53,7 @@ namespace Ui class AutomatedRssDownloader : public QDialog { Q_OBJECT + Q_DISABLE_COPY(AutomatedRssDownloader) public: explicit AutomatedRssDownloader(QWidget *parent = nullptr);