mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 00:26:39 +00:00 
			
		
		
		
	do not try to jump to source location for errors that do not have a source location
This commit is contained in:
		
							parent
							
								
									527ab1aff7
								
							
						
					
					
						commit
						9abc57d988
					
				
					 1 changed files with 6 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -124,7 +124,10 @@ void CSVWorld::ScriptErrorTable::update (const std::string& source)
 | 
			
		|||
 | 
			
		||||
void CSVWorld::ScriptErrorTable::cellClicked (int row, int column)
 | 
			
		||||
{
 | 
			
		||||
    int scriptLine = item (row, 1)->data (Qt::DisplayRole).toInt();
 | 
			
		||||
    int scriptColumn = item (row, 3)->data (Qt::DisplayRole).toInt();
 | 
			
		||||
    emit highlightError (scriptLine-1, scriptColumn);
 | 
			
		||||
    if (item (row, 1))
 | 
			
		||||
    {
 | 
			
		||||
        int scriptLine = item (row, 1)->data (Qt::DisplayRole).toInt();
 | 
			
		||||
        int scriptColumn = item (row, 3)->data (Qt::DisplayRole).toInt();
 | 
			
		||||
        emit highlightError (scriptLine-1, scriptColumn);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue