[plasma/spectacle/Plasma/6.7] src: Fix QTimer construction in annotation sync

Noah Davis <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 7ec4981e6841b7b1c01d5ec6307129660dee0664 by Noah Davis.
Committed on 24/07/2026 at 18:05.
Pushed by ndavis into branch 'Plasma/6.7'.

Fix QTimer construction in annotation sync


(cherry picked from commit 273f5cebe82ad037be88d224f666d493d2accee8)

Co-authored-by: Pranav Kunjir <[email protected]>

M  +1    -1    src/SpectacleCore.cpp

https://invent.kde.org/plasma/spectacle/-/commit/7ec4981e6841b7b1c01d5ec6307129660dee0664

diff --git a/src/SpectacleCore.cpp b/src/SpectacleCore.cpp
index 63bd6f348..acf9f1d12 100644
--- a/src/SpectacleCore.cpp
+++ b/src/SpectacleCore.cpp
@@ -75,7 +75,7 @@ SpectacleCore::SpectacleCore(QObject *parent)
     : QObject(parent)
 {
     // Timer to prevent lots of extra rendering to images
-    m_annotationSyncTimer = std::make_unique<QTimer>(new QTimer(this));
+    m_annotationSyncTimer = std::make_unique<QTimer>();
     m_annotationSyncTimer->setInterval(400);
     m_annotationSyncTimer->setSingleShot(true);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.