mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Substring match BT address
Since a known DC will have the name prepended to the BT/BLE addresss we need to substring match the BT address. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
This commit is contained in:
		
							parent
							
								
									c70225f575
								
							
						
					
					
						commit
						0f588f5227
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -53,6 +53,6 @@ void ConnectionListModel::removeAllAddresses() | |||
| 
 | ||||
| int ConnectionListModel::indexOf(QString address) | ||||
| { | ||||
| 	const QRegExp re(address, Qt::CaseInsensitive); | ||||
| 	const QRegExp re(".*" + address + ".*", Qt::CaseInsensitive); | ||||
| 	return m_addresses.indexOf(re); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue