summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/component.cpp
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@digia.com>2014-04-11 16:27:17 +0200
committerKarsten Heimrich <karsten.heimrich@digia.com>2014-05-16 10:29:39 +0200
commitffa1ceb12086bf20d70acf27501cd91e3e2c544a (patch)
tree17fc97f6a7cc9d5e29fc602cf5a3ddc193459324 /src/libs/installer/component.cpp
parentbe321571a79467292828e37c5b77c1cc5b5bc8dc (diff)
Fix component still visible after it's set "Virtual".
Task-number: QTIFW-466 Change-Id: I6a5e4d0d20703e2d4e867bb2619c82dac0b8a64c Reviewed-by: Kai Koehne <kai.koehne@digia.com> Reviewed-by: Niels Weber <niels.weber@digia.com>
Diffstat (limited to 'src/libs/installer/component.cpp')
-rw-r--r--src/libs/installer/component.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libs/installer/component.cpp b/src/libs/installer/component.cpp
index 1b37cc12c..91b22563c 100644
--- a/src/libs/installer/component.cpp
+++ b/src/libs/installer/component.cpp
@@ -1395,6 +1395,11 @@ void Component::updateModelData(const QString &key, const QString &data)
if (key == scVirtual) {
if (data.toLower() == scTrue)
setData(d->m_core->virtualComponentsFont(), Qt::FontRole);
+ if (Component *const parent = parentComponent()) {
+ parent->removeComponent(this);
+ parent->appendComponent(this);
+ }
+ emit virtualStateChanged();
}
if (key == scRemoteDisplayVersion)