[plasma/spectacle] src: Fix QTimer construction in annotation sync
Noah Davis <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 273f5cebe82ad037be88d224f666d493d2accee8 by Noah Davis, on behalf of Pranav Kunjir.
Committed on 24/07/2026 at 17:05.
Pushed by ndavis into branch 'master'.
Fix QTimer construction in annotation sync
M +1 -1 src/SpectacleCore.cpp
https://invent.kde.org/plasma/spectacle/-/commit/273f5cebe82ad037be88d224f666d493d2accee8
diff --git a/src/SpectacleCore.cpp b/src/SpectacleCore.cpp
index ce92d54ac..55c973450 100644
--- a/src/SpectacleCore.cpp
+++ b/src/SpectacleCore.cpp
@@ -80,7 +80,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);