From 062b36aeacfac45439431b692b9525d8eb8b5a83 Mon Sep 17 00:00:00 2001 From: Daniel Hams Date: Tue, 18 Feb 2014 17:44:59 +0000 Subject: [PATCH] Revert back use of std::unique_ptr on QTimer - QT manages the lifecycle. --- alethzero/MainWin.cpp | 4 ++-- alethzero/MainWin.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/alethzero/MainWin.cpp b/alethzero/MainWin.cpp index 12de0ac2a..585b9c870 100644 --- a/alethzero/MainWin.cpp +++ b/alethzero/MainWin.cpp @@ -30,8 +30,8 @@ Main::Main(QWidget *parent) : readSettings(); refresh(); - m_refresh.reset(new QTimer(this)); - connect(m_refresh.get(), SIGNAL(timeout()), SLOT(refresh())); + m_refresh = new QTimer(this); + connect(m_refresh, SIGNAL(timeout()), SLOT(refresh())); m_refresh->start(1000); #if ETH_DEBUG diff --git a/alethzero/MainWin.h b/alethzero/MainWin.h index 85006350e..b13367e3d 100644 --- a/alethzero/MainWin.h +++ b/alethzero/MainWin.h @@ -58,7 +58,7 @@ private: QByteArray m_peers; QMutex m_guiLock; - std::unique_ptr m_refresh; + QTimer* m_refresh; QStringList m_servers; QVector m_myKeys; QStringList m_data;