Commit 2c1a0119 authored by Christian Stenger's avatar Christian Stenger
Browse files

Fix unexpected parser state when parsing finishes



While parsing test code it might happen that the user closes
all related widgets and so the parser falls into the state Disabled.
This was unexpected and did print a warning.
Now this case is somewhat expected and won't print a warning anymore.

Change-Id: I0082bdc31f6ed351cf1dbd7b34da2f5672aee3dd
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
parent 36a82655
......@@ -751,8 +751,11 @@ void TestCodeParser::onFinished()
emit parsingFinished();
m_dirty = false;
break;
case Disabled: // can happen if all Test related widgets become hidden while parsing
emit parsingFinished();
break;
default:
qWarning("I should not be here...");
qWarning("I should not be here... State: %d", m_parserState);
break;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment