diff options
author | Christian Stenger <christian.stenger@theqtcompany.com> | 2015-03-09 10:57:40 +0100 |
---|---|---|
committer | Christian Stenger <christian.stenger@theqtcompany.com> | 2015-03-09 13:01:54 +0200 |
commit | 2c1a0119bd56be2e18250e4c08c1fb201f541885 (patch) | |
tree | 41a7af5b08e632c3bbc22c3674bcb1a6e94c87f4 | |
parent | 36a8265549b2cbd6dd9f5b1730137428521595f7 (diff) | |
download | qt-creator-2c1a0119bd56be2e18250e4c08c1fb201f541885.tar.gz |
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: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
-rw-r--r-- | plugins/autotest/testcodeparser.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/autotest/testcodeparser.cpp b/plugins/autotest/testcodeparser.cpp index bc28fa0720..2ffe2a137e 100644 --- a/plugins/autotest/testcodeparser.cpp +++ b/plugins/autotest/testcodeparser.cpp @@ -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; } } |