diff options
author | Daniel Teske <daniel.teske@theqtcompany.com> | 2015-01-21 12:15:27 +0100 |
---|---|---|
committer | Daniel Teske <daniel.teske@theqtcompany.com> | 2015-01-22 11:13:52 +0100 |
commit | e1da2d8d9850f278cbe799fa97b3fc62482e64f6 (patch) | |
tree | 65c38c57ab31dddd5ca136b184ac4f76901b32f6 | |
parent | 39107ca29832c009f39c4c811d7288f64a0cad7d (diff) | |
download | qt-creator-e1da2d8d9850f278cbe799fa97b3fc62482e64f6.tar.gz |
KitConfigWidget: Only emit autodetectionChanged if itactually changed
Ups. I verified that the crash is still fixed.
Change-Id: Ibb3a72bab79eb433ff426c90a60b33cc6a6d873b
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
-rw-r--r-- | src/plugins/projectexplorer/kitmanagerconfigwidget.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/kitmanagerconfigwidget.cpp b/src/plugins/projectexplorer/kitmanagerconfigwidget.cpp index 375b0fb393..06f33d3f5b 100644 --- a/src/plugins/projectexplorer/kitmanagerconfigwidget.cpp +++ b/src/plugins/projectexplorer/kitmanagerconfigwidget.cpp @@ -357,7 +357,8 @@ void KitManagerConfigWidget::kitWasUpdated(Kit *k) if (m_kit == k) { bool emitSignal = m_kit->isAutoDetected() != m_modifiedKit->isAutoDetected(); discard(); - emit isAutoDetectedChanged(); + if (emitSignal) + emit isAutoDetectedChanged(); } updateVisibility(); } |