forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/12.0'
Change-Id: I35cb28b759fb200c45a1496299584132336fcd1c
This commit is contained in:
@@ -2701,10 +2701,7 @@ TimeoutTaskAdapter::~TimeoutTaskAdapter()
|
||||
|
||||
void TimeoutTaskAdapter::start()
|
||||
{
|
||||
if (*task() == milliseconds::zero())
|
||||
QTimer::singleShot(0, this, [this] { emit done(true); });
|
||||
else
|
||||
m_timerId = scheduleTimeout(*task(), this, [this] { m_timerId = {}; emit done(true); });
|
||||
m_timerId = scheduleTimeout(*task(), this, [this] { m_timerId = {}; emit done(true); });
|
||||
}
|
||||
|
||||
} // namespace Tasking
|
||||
|
||||
Reference in New Issue
Block a user