Test: [skip ci] limit the text in the error dialog to 1000 chars as otherwise it can become larger than the available vertical space of the desktop

This commit is contained in:
wmayer
2022-02-14 10:29:41 +01:00
parent 4abd91c8e0
commit 27e020e28e

View File

@@ -139,6 +139,9 @@ void UnitTestDialog::on_treeViewFailure_itemDoubleClicked(QTreeWidgetItem * item
lines.erase(lines.begin()+20, lines.end());
text = lines.join(QLatin1String("\n"));
}
if (text.size() > 1000) {
text = text.left(1000);
}
msgBox.setText(text);
msgBox.exec();