mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-03 23:26:40 +00:00 
			
		
		
		
	Do not use the QStringList::fromSet, which is deprecated since Qt 5.14
This commit is contained in:
		
							parent
							
								
									2693598d82
								
							
						
					
					
						commit
						d57253c5e2
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
					@ -375,7 +375,12 @@ void Launcher::DataFilesPage::reloadCells(QStringList selectedFiles)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // The following code will run only if there is not another thread currently running it
 | 
					    // The following code will run only if there is not another thread currently running it
 | 
				
			||||||
    CellNameLoader cellNameLoader;
 | 
					    CellNameLoader cellNameLoader;
 | 
				
			||||||
 | 
					#if QT_VERSION >= QT_VERSION_CHECK(5,14,0)
 | 
				
			||||||
 | 
					    QSet<QString> set = cellNameLoader.getCellNames(selectedFiles);
 | 
				
			||||||
 | 
					    QStringList cellNamesList(set.begin(), set.end());
 | 
				
			||||||
 | 
					#else
 | 
				
			||||||
    QStringList cellNamesList = QStringList::fromSet(cellNameLoader.getCellNames(selectedFiles));
 | 
					    QStringList cellNamesList = QStringList::fromSet(cellNameLoader.getCellNames(selectedFiles));
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
    std::sort(cellNamesList.begin(), cellNamesList.end());
 | 
					    std::sort(cellNamesList.begin(), cellNamesList.end());
 | 
				
			||||||
    emit signalLoadedCellsChanged(cellNamesList);
 | 
					    emit signalLoadedCellsChanged(cellNamesList);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue