mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-13 22:05:48 +00:00
fix #81
As it was found the issue has been caused by parallel access to QGraphicsScene so it has been cleared before convertion to pixmap. It has been resolved by deletion concurrent updates in this place (it makes sense anyway).
This commit is contained in:
@ -229,10 +229,9 @@ void AWKeys::reinitKeys(const QStringList currentKeys)
|
||||
|
||||
void AWKeys::updateTextData()
|
||||
{
|
||||
QFuture<QString> text = QtConcurrent::run(m_threadPool, [this]() {
|
||||
calculateValues();
|
||||
return parsePattern(keyOperator->pattern());
|
||||
});
|
||||
// do not do it in parallel to avoid race condition
|
||||
calculateValues();
|
||||
QString text = parsePattern(keyOperator->pattern());
|
||||
|
||||
emit(needTextToBeUpdated(text));
|
||||
emit(dataAggregator->updateData(values));
|
||||
|
Reference in New Issue
Block a user