call in the correct place make_menu and fix a traceback
This commit is contained in:
		
							parent
							
								
									68394d8398
								
							
						
					
					
						commit
						1a5667ff1e
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -243,7 +243,8 @@ class RosterWindow:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	def join_gc_room(self, account, room_jid, nick, password):
 | 
						def join_gc_room(self, account, room_jid, nick, password):
 | 
				
			||||||
		if room_jid in self.plugin.windows[account]['gc']:
 | 
							if room_jid in self.plugin.windows[account]['gc']:
 | 
				
			||||||
			ErrorDialog(_('You are already in room ' + room_jid)).get_response()
 | 
								dialogs.ErrorDialog(_('You are already in room ' + room_jid)
 | 
				
			||||||
 | 
										).get_response()
 | 
				
			||||||
			return
 | 
								return
 | 
				
			||||||
		room, server = room_jid.split('@')
 | 
							room, server = room_jid.split('@')
 | 
				
			||||||
		self.new_room(room_jid, nick, account)
 | 
							self.new_room(room_jid, nick, account)
 | 
				
			||||||
| 
						 | 
					@ -935,7 +936,6 @@ class RosterWindow:
 | 
				
			||||||
		if message == -1:
 | 
							if message == -1:
 | 
				
			||||||
			return
 | 
								return
 | 
				
			||||||
		self.send_status(account, status, message)
 | 
							self.send_status(account, status, message)
 | 
				
			||||||
		self.make_menu()
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	def on_status_combobox_changed(self, widget):
 | 
						def on_status_combobox_changed(self, widget):
 | 
				
			||||||
		'''When we change our status'''
 | 
							'''When we change our status'''
 | 
				
			||||||
| 
						 | 
					@ -959,7 +959,6 @@ class RosterWindow:
 | 
				
			||||||
													'sync_with_global_status'):
 | 
																		'sync_with_global_status'):
 | 
				
			||||||
				continue
 | 
									continue
 | 
				
			||||||
			self.send_status(acct, status, message)
 | 
								self.send_status(acct, status, message)
 | 
				
			||||||
		self.make_menu()
 | 
					 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	def update_status_comboxbox(self):
 | 
						def update_status_comboxbox(self):
 | 
				
			||||||
		#table to change index in plugin.connected to index in combobox
 | 
							#table to change index in plugin.connected to index in combobox
 | 
				
			||||||
| 
						 | 
					@ -995,6 +994,7 @@ class RosterWindow:
 | 
				
			||||||
				for user in luser_copy:
 | 
									for user in luser_copy:
 | 
				
			||||||
					self.chg_user_status(user, 'offline', 'Disconnected', account)
 | 
										self.chg_user_status(user, 'offline', 'Disconnected', account)
 | 
				
			||||||
		self.update_status_comboxbox()
 | 
							self.update_status_comboxbox()
 | 
				
			||||||
 | 
							self.make_menu()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	def new_chat(self, user, account):
 | 
						def new_chat(self, user, account):
 | 
				
			||||||
		if gajim.config.get('usetabbedchat'):
 | 
							if gajim.config.get('usetabbedchat'):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue