Browse Source

Revert back use of std::unique_ptr on QTimer - QT manages the lifecycle.

cl-refactor
Daniel Hams 11 years ago
parent
commit
062b36aeac
  1. 4
      alethzero/MainWin.cpp
  2. 2
      alethzero/MainWin.h

4
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

2
alethzero/MainWin.h

@ -58,7 +58,7 @@ private:
QByteArray m_peers;
QMutex m_guiLock;
std::unique_ptr<QTimer> m_refresh;
QTimer* m_refresh;
QStringList m_servers;
QVector<eth::KeyPair> m_myKeys;
QStringList m_data;

Loading…
Cancel
Save