mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Use the canonical version when checking for updates
This is in the form major.minor.subminor.commit_nr and makes it easy for the backend process on the server to figure out what to do. This changes the query argument from ver to version so the backend knows that this is now a canonical version. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									3e6a721771
								
							
						
					
					
						commit
						75af60f327
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -23,8 +23,8 @@ void UpdateManager::checkForUpdates() | |||
| 	os = "unknown"; | ||||
| #endif | ||||
| 
 | ||||
| 	QString version = VERSION_STRING; | ||||
| 	QString url = QString("http://subsurface-divelog.org/updatecheck.html?os=%1&ver=%2").arg(os, version); | ||||
| 	QString version = CANONICAL_VERSION_STRING; | ||||
| 	QString url = QString("http://subsurface-divelog.org/updatecheck.html?os=%1&version=%2").arg(os, version); | ||||
| 	QNetworkRequest request; | ||||
| 	request.setUrl(url); | ||||
| 	request.setRawHeader("Accept", "text/xml"); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue