Commit f1b240d0 authored by Christian Stenger's avatar Christian Stenger
Browse files

Disable context menu entries while parsing



Change-Id: Ib562ed00065fedd94fdaed0edb11b0fa62a18de5
Reviewed-by: default avatarDavid Schulz <david.schulz@theqtcompany.com>
parent 4fb458c9
......@@ -55,6 +55,7 @@ public:
explicit TestCodeParser(TestTreeModel *parent = 0);
virtual ~TestCodeParser();
void setState(State state);
State state() const { return m_parserState; }
#ifdef WITH_TESTS
int autoTestsCount() const;
......
......@@ -86,7 +86,8 @@ TestNavigationWidget::~TestNavigationWidget()
void TestNavigationWidget::contextMenuEvent(QContextMenuEvent *event)
{
const bool enabled = !TestRunner::instance()->isTestRunning();
const bool enabled = !TestRunner::instance()->isTestRunning()
&& m_model->parser()->state() == TestCodeParser::Idle;
const bool hasTests = m_model->hasTests();
QMenu menu;
QAction *runAll = Core::ActionManager::command(Constants::ACTION_RUN_ALL_ID)->action();
......
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