mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 01:50:06 +00:00 
			
		
		
		
	trim whitespace from placefile URL's
This commit is contained in:
		
							parent
							
								
									411c570b67
								
							
						
					
					
						commit
						67706dc186
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -17,7 +17,8 @@ std::string NormalizeUrl(const std::string& urlString) | |||
|    std::string normalizedUrl; | ||||
| 
 | ||||
|    // Normalize URL string
 | ||||
|    QUrl url = QUrl::fromUserInput(QString::fromStdString(urlString)); | ||||
|    QString trimmedUrlString = QString::fromStdString(urlString).trimmed(); | ||||
|    QUrl url = QUrl::fromUserInput(trimmedUrlString); | ||||
|    if (url.isLocalFile()) | ||||
|    { | ||||
|       normalizedUrl = QDir::toNativeSeparators(url.toLocalFile()).toStdString(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak