we can now drop many files to a tab and Gajim will send all files
This commit is contained in:
		
							parent
							
								
									0fb573ccc6
								
							
						
					
					
						commit
						ee8173d393
					
				
					 1 changed files with 6 additions and 4 deletions
				
			
		| 
						 | 
					@ -106,10 +106,12 @@ class TabbedChatWindow(chat.Chat):
 | 
				
			||||||
timestamp, contact):
 | 
					timestamp, contact):
 | 
				
			||||||
		if target_type == self.TARGET_TYPE_URI_LIST:
 | 
							if target_type == self.TARGET_TYPE_URI_LIST:
 | 
				
			||||||
			uri = selection.data.strip()
 | 
								uri = selection.data.strip()
 | 
				
			||||||
			path = helpers.get_file_path_from_dnd_dropped_uri(uri)
 | 
								uri_splitted = uri.split() # we may have more than one file dropped
 | 
				
			||||||
			if os.path.isfile(path): # is it file?
 | 
								for uri in uri_splitted:
 | 
				
			||||||
				self.plugin.windows['file_transfers'].send_file(self.account,
 | 
									path = helpers.get_file_path_from_dnd_dropped_uri(uri)
 | 
				
			||||||
					contact, path)
 | 
									if os.path.isfile(path): # is it file?
 | 
				
			||||||
 | 
										self.plugin.windows['file_transfers'].send_file(self.account,
 | 
				
			||||||
 | 
											contact, path)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	def draw_widgets(self, contact):
 | 
						def draw_widgets(self, contact):
 | 
				
			||||||
		"""draw the widgets in a tab (status_image, contact_button ...)
 | 
							"""draw the widgets in a tab (status_image, contact_button ...)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue