mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2026-10-23 21:45:01 +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:
1 parent
50f3ef5bba
commit
89d573450a
2 files changed
+3
-6
No files matched your search
@@ -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