forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/10.0'
Change-Id: I98e5e1ad43103984b490c65cdeed84b7414303b3
This commit is contained in:
@@ -426,7 +426,8 @@ void CppCodeStylePreferencesWidget::setCodeStyleSettings(const CppCodeStyleSetti
|
||||
|
||||
void CppCodeStylePreferencesWidget::slotCurrentPreferencesChanged(ICodeStylePreferences *preferences, bool preview)
|
||||
{
|
||||
const bool enable = !preferences->isReadOnly() && !preferences->isTemporarilyReadOnly();
|
||||
const bool enable = !preferences->isReadOnly() && (!preferences->isTemporarilyReadOnly()
|
||||
|| preferences->isAdditionalTabDisabled());
|
||||
for (QWidget *widget : d->m_controllers)
|
||||
widget->setEnabled(enable);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user