mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-24 23:47:20 +00:00
16 lines
601 B
Diff
16 lines
601 B
Diff
diff --git a/sources/awesome-widget/plugin/awkeys.cpp b/sources/awesome-widget/plugin/awkeys.cpp
|
|
index 1744fb7..f483209 100644
|
|
--- a/sources/awesome-widget/plugin/awkeys.cpp
|
|
+++ b/sources/awesome-widget/plugin/awkeys.cpp
|
|
@@ -234,8 +234,10 @@ void AWKeys::reinitKeys(const QStringList currentKeys)
|
|
void AWKeys::updateTextData()
|
|
{
|
|
// do not do it in parallel to avoid race condition
|
|
+ m_mutex.lock();
|
|
calculateValues();
|
|
QString text = parsePattern(keyOperator->pattern());
|
|
+ m_mutex.unlock();
|
|
|
|
emit(needTextToBeUpdated(text));
|
|
emit(dataAggregator->updateData(values));
|