1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-19 21:39:46 +00:00

do not try to jump to source location for errors that do not have a source location

This commit is contained in:
Marc Zinnschlag 2015-07-17 13:59:50 +02:00 committed by cc9cii
parent 527ab1aff7
commit 9abc57d988

View file

@ -123,8 +123,11 @@ void CSVWorld::ScriptErrorTable::update (const std::string& source)
} }
void CSVWorld::ScriptErrorTable::cellClicked (int row, int column) void CSVWorld::ScriptErrorTable::cellClicked (int row, int column)
{
if (item (row, 1))
{ {
int scriptLine = item (row, 1)->data (Qt::DisplayRole).toInt(); int scriptLine = item (row, 1)->data (Qt::DisplayRole).toInt();
int scriptColumn = item (row, 3)->data (Qt::DisplayRole).toInt(); int scriptColumn = item (row, 3)->data (Qt::DisplayRole).toInt();
emit highlightError (scriptLine-1, scriptColumn); emit highlightError (scriptLine-1, scriptColumn);
} }
}