Check global shortcuts in Workspace::shortcutAvailable

One TODO less.
This commit is contained in:
Martin Gräßlin 2013-02-13 13:53:45 +01:00
parent a3faf455b9
commit dc649d1dc6

View file

@ -1861,7 +1861,12 @@ void Client::delayedSetShortcut()
bool Workspace::shortcutAvailable(const KShortcut& cut, Client* ignore) const
{
// TODO check global shortcuts etc.
Q_FOREACH (const QKeySequence &seq, cut.toList()) {
if (!KGlobalAccel::getGlobalShortcutsByKey(seq).isEmpty()) {
return false;
}
}
for (ClientList::ConstIterator it = clients.constBegin();
it != clients.constEnd();
++it) {