mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-24 23:47:20 +00:00
fix lambda related code
This commit is contained in:
parent
ce30d90a23
commit
4bba061d66
@ -28,7 +28,7 @@ QString AWPatternFunctions::expandLambdas(QString _code, AWKeysAggregator *_aggr
|
||||
const QVariantHash &_metadata,
|
||||
const QStringList &_usedKeys)
|
||||
{
|
||||
qCDebug(LOG_AW) << "Expand lamdas in" << _code;
|
||||
qCDebug(LOG_AW) << "Expand lambdas in" << _code;
|
||||
|
||||
QJSEngine engine;
|
||||
// apply $this values
|
||||
|
@ -397,11 +397,11 @@ void GraphicalItem::setUsedKeys(const QStringList &_usedKeys)
|
||||
|
||||
// remove dubs
|
||||
// HACK converting to set may break order
|
||||
usedKeys().clear();
|
||||
m_usedKeys.clear();
|
||||
for (auto &key : _usedKeys) {
|
||||
if (usedKeys().contains(key))
|
||||
if (m_usedKeys.contains(key))
|
||||
continue;
|
||||
usedKeys().append(key);
|
||||
m_usedKeys.append(key);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -176,7 +176,7 @@ void TestAWKeys::test_dbus()
|
||||
|
||||
// check if there is active sessions first
|
||||
QDBusMessage sessions = QDBusMessage::createMethodCall(AWDBUS_SERVICE, AWDBUS_PATH,
|
||||
AWDBUS_SERVICE, "ActiveServicess");
|
||||
AWDBUS_SERVICE, "ActiveServices");
|
||||
QDBusMessage sessionsResponse = bus.call(sessions, QDBus::BlockWithGui);
|
||||
if (sessionsResponse.arguments().isEmpty())
|
||||
QSKIP("No active sessions found, skip DBus tests");
|
||||
|
Loading…
Reference in New Issue
Block a user