ProjectExplorer: Add RunControl accessor to configuration settings

Change-Id: I30e8f27d4090576d38fe8a778d7fa508ac26cbfa
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-03-12 17:36:48 +01:00
parent 89335266ba
commit f20a924167
4 changed files with 11 additions and 4 deletions

View File

@@ -58,8 +58,8 @@ ValgrindToolRunner::ValgrindToolRunner(RunControl *runControl)
runControl->setIcon(ProjectExplorer::Icons::ANALYZER_START_SMALL_TOOLBAR);
setSupportsReRunning(false);
m_settings = runControl->runConfiguration()
->currentSettings<ValgrindBaseSettings>(ANALYZER_VALGRIND_SETTINGS);
m_settings =
qobject_cast<ValgrindBaseSettings *>(runControl->settings(ANALYZER_VALGRIND_SETTINGS));
if (!m_settings)
m_settings = ValgrindPlugin::globalSettings();