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:
parent
527ab1aff7
commit
9abc57d988
1 changed files with 6 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue