aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotest/autotestplugin.cpp
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2017-03-06 15:24:16 +0100
committerChristian Stenger <christian.stenger@qt.io>2017-03-07 09:57:53 +0000
commitb273d7be6a44c5638b75c7726d343c6da4484a38 (patch)
tree9d6b9ec27f630fcb0af38651c4c9848acf553176 /src/plugins/autotest/autotestplugin.cpp
parenta0951489934c51e8c122bd059b0bcc34aee7835d (diff)
AutoTest: Ensure that removing and adding qml files is noticed
Task-number: QTCREATORBUG-17805 Change-Id: I068f6925fc39813a504205c4ef8e8b9f9e911189 Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/autotest/autotestplugin.cpp')
-rw-r--r--src/plugins/autotest/autotestplugin.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/autotest/autotestplugin.cpp b/src/plugins/autotest/autotestplugin.cpp
index 226f0f26c6..571af4ba08 100644
--- a/src/plugins/autotest/autotestplugin.cpp
+++ b/src/plugins/autotest/autotestplugin.cpp
@@ -114,8 +114,9 @@ void AutotestPlugin::initializeMenuEntries()
action = new QAction(tr("Re&scan Tests"), this);
command = ActionManager::registerAction(action, Constants::ACTION_SCAN_ID);
command->setDefaultKeySequence(QKeySequence(tr("Alt+Shift+T,Alt+S")));
- connect(action, &QAction::triggered,
- TestTreeModel::instance()->parser(), &TestCodeParser::updateTestTree);
+ connect(action, &QAction::triggered, [this] () {
+ TestTreeModel::instance()->parser()->updateTestTree();
+ });
menu->addAction(command);
ActionContainer *toolsMenu = ActionManager::actionContainer(Core::Constants::M_TOOLS);