Skip to content

Commit

Permalink
Don't delete non-dgroups groups when empty
Browse files Browse the repository at this point in the history
  • Loading branch information
tych0 committed Dec 14, 2012
1 parent 035fa58 commit 69dd351
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libqtile/dgroups.py
Expand Up @@ -192,9 +192,9 @@ def _del(self, client):

def delete_client():
# Delete group if empty and dont persist
if group and not (group.name in self.groups and\
self.groups[group.name].get('persist')) and\
len(group.windows) <= 0:
if group and group.name in self.groups and\
self.groups[group.name].get('persist') and\
len(group.windows) <= 0:
self.qtile.delGroup(group.name)

# wait the delay until really delete the group
Expand Down

0 comments on commit 69dd351

Please sign in to comment.