* try to drop text update to main thread instead of concurrent run

* update contributing.md
This commit is contained in:
arcan1s
2015-10-15 16:54:13 +03:00
parent af0dd25b86
commit 2db2de4c27
2 changed files with 6 additions and 9 deletions

View File

@ -523,16 +523,8 @@ void AWKeys::updateTextData()
{
qCDebug(LOG_AW);
#ifdef BUILD_FUTURE
QFuture<QString> text = QtConcurrent::run(m_threadPool, [this]() {
calculateValues();
return parsePattern(m_pattern);
});
#else /* BUILD_FUTURE */
calculateValues();
QString text = parsePattern(m_pattern);
#endif /* BUILD_FUTURE */
emit(needTextToBeUpdated(text));
emit(needTextToBeUpdated(parsePattern(m_pattern)));
emit(dataAggregator->updateData(values));
}