mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Bluetooth: actually download from the device selected
If we update the device with a shortcut button, this is the reliable way to get the information we need. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									c8fec97695
								
							
						
					
					
						commit
						8777945d00
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		|  | @ -368,8 +368,10 @@ void DownloadFromDCWidget::on_downloadCancelRetryButton_clicked() | ||||||
| 			data->setDevName(btDeviceSelectionDialog->getSelectedDeviceAddress()); | 			data->setDevName(btDeviceSelectionDialog->getSelectedDeviceAddress()); | ||||||
| 			data->setDevBluetoothName(btDeviceSelectionDialog->getSelectedDeviceName()); | 			data->setDevBluetoothName(btDeviceSelectionDialog->getSelectedDeviceName()); | ||||||
| 		} else { | 		} else { | ||||||
| 			data->setDevName(qPrefDiveComputer::device()); | 			QString name, address; | ||||||
| 			data->setDevBluetoothName(qPrefDiveComputer::device_name()); | 			address = extractBluetoothNameAddress(ui.device->currentText(), name); | ||||||
|  | 			data->setDevName(address); | ||||||
|  | 			data->setDevBluetoothName(name); | ||||||
| 		} | 		} | ||||||
| 	} else | 	} else | ||||||
| 		// this breaks an "else if" across lines... not happy...
 | 		// this breaks an "else if" across lines... not happy...
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue