Changeset View
Changeset View
Standalone View
Standalone View
projectconfig/projectconfigpage.cpp
Show All 31 Lines | 30 | { | |||
---|---|---|---|---|---|
32 | m_ui->setupUi(this); | 32 | m_ui->setupUi(this); | ||
33 | m_project = options.project; | 33 | m_project = options.project; | ||
34 | } | 34 | } | ||
35 | 35 | | |||
36 | void Python::ProjectConfigPage::apply() | 36 | void Python::ProjectConfigPage::apply() | ||
37 | { | 37 | { | ||
38 | m_configGroup.writeEntry("interpreter", m_ui->pythonInterpreter->text()); | 38 | m_configGroup.writeEntry("interpreter", m_ui->pythonInterpreter->text()); | ||
39 | // remove cached paths, so they are updated on the next parse job run | 39 | // remove cached paths, so they are updated on the next parse job run | ||
40 | QMutexLocker lock(&Helper::cacheMutex); | 40 | QMutexLocker lock(&Helper::cacheMutex()); | ||
41 | Helper::cachedSearchPaths.remove(m_project); | 41 | Helper::cachedSearchPaths().remove(m_project); | ||
42 | } | 42 | } | ||
43 | 43 | | |||
44 | void Python::ProjectConfigPage::defaults() | 44 | void Python::ProjectConfigPage::defaults() | ||
45 | { | 45 | { | ||
46 | m_ui->pythonInterpreter->setText(QString()); | 46 | m_ui->pythonInterpreter->setText(QString()); | ||
47 | } | 47 | } | ||
48 | 48 | | |||
49 | void Python::ProjectConfigPage::reset() | 49 | void Python::ProjectConfigPage::reset() | ||
Show All 12 Lines |