remove an assert and add a space above a method
This commit is contained in:
parent
d945166749
commit
ccc78991b2
1 changed files with 1 additions and 1 deletions
|
@ -561,7 +561,6 @@ class MessageWindowMgr:
|
||||||
# Map the mode to a int constant for frequent compares
|
# Map the mode to a int constant for frequent compares
|
||||||
mode = gajim.config.get('one_message_window')
|
mode = gajim.config.get('one_message_window')
|
||||||
self.mode = common.config.opt_one_window_types.index(mode)
|
self.mode = common.config.opt_one_window_types.index(mode)
|
||||||
assert(self.mode != -1)
|
|
||||||
|
|
||||||
def _new_window(self, acct, type):
|
def _new_window(self, acct, type):
|
||||||
win = MessageWindow(acct, type)
|
win = MessageWindow(acct, type)
|
||||||
|
@ -581,6 +580,7 @@ class MessageWindowMgr:
|
||||||
if win.get_control(jid):
|
if win.get_control(jid):
|
||||||
return win
|
return win
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def has_window(self, jid):
|
def has_window(self, jid):
|
||||||
return self.get_window(jid)
|
return self.get_window(jid)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue