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:
parent
90e6ec6316
commit
f8063fc809
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue
Block a user