1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Fix idleTimer use before construction

This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-11-20 00:22:44 +01:00
parent 90e6ec6316
commit f8063fc809
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -115,6 +115,10 @@ void Widget::init()
ui->statusbar->hide();
ui->menubar->hide();
idleTimer = new QTimer();
idleTimer->setSingleShot(true);
setIdleTimer(Settings::getInstance().getAutoAwayTime());
//restore window state
restoreGeometry(Settings::getInstance().getWindowGeometry());
restoreState(Settings::getInstance().getWindowState());
@ -179,10 +183,6 @@ void Widget::init()
Style::setThemeColor(Settings::getInstance().getThemeColor());
Style::applyTheme();
idleTimer = new QTimer();
idleTimer->setSingleShot(true);
setIdleTimer(Settings::getInstance().getAutoAwayTime());
qRegisterMetaType<Status>("Status");
qRegisterMetaType<vpx_image>("vpx_image");
qRegisterMetaType<uint8_t>("uint8_t");