ui: Added show errors button to title bar of incomplete files (issue #246)
* Shows all errors within the file and all included files.
This commit is contained in:
@@ -80,7 +80,12 @@ void ErrorController::handleMessage(MessageShowErrors* message)
|
||||
|
||||
clear();
|
||||
|
||||
std::vector<ErrorInfo> errors = m_storageAccess->getErrorsLimited();
|
||||
std::vector<ErrorInfo> errors = message->errors;
|
||||
if (!errors.size())
|
||||
{
|
||||
errors = m_storageAccess->getErrorsLimited();
|
||||
}
|
||||
|
||||
if (errors.size())
|
||||
{
|
||||
getView()->showDockWidget();
|
||||
|
||||
Reference in New Issue
Block a user