diff options
author | Daniel Teske <daniel.teske@theqtcompany.com> | 2015-01-20 12:43:46 +0100 |
---|---|---|
committer | Daniel Teske <daniel.teske@theqtcompany.com> | 2015-01-20 16:24:26 +0100 |
commit | 64cc15bca4f6e91917dea28387c39706a40805f3 (patch) | |
tree | fdde562034e9155e3c2a7f55cc1cb3ed4ea1ca28 /src/plugins/projectexplorer/kitmodel.h | |
parent | 8211a849e1c754a976574ec66316b26e8f1f1da9 (diff) |
Kit: Fix crash on removing android kits that were autodetected
To reproduce:
In the Android settings, enabled "Automatically create kits"
-> This creates kits with autodetected set to true
Switch to the kits page to get the KitPage filled, those kits
now appear under the autodetected node.
Switch to the Android settings and disable "Automatically create kits",
-> This doesn't want to delete the old kits, to not throw away user
settings, so the kits are marked as manual by calling setAutoDetected
Switch to the Kit page and notice the kits still listed under the
autodetected node. Clicking apply enables the remove button and on
removing Creator crashes.
Add the necessary signal emissions to setAutoDetected and several other
methods and fix the KitModel to cope with changes to autodetected.
Task-number: QTCREATORBUG-13736
Change-Id: I3d0ff247a6bfff8ace53df8535749db5c736d54b
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Diffstat (limited to 'src/plugins/projectexplorer/kitmodel.h')
-rw-r--r-- | src/plugins/projectexplorer/kitmodel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/kitmodel.h b/src/plugins/projectexplorer/kitmodel.h index 2cde469b3f..772a5ed383 100644 --- a/src/plugins/projectexplorer/kitmodel.h +++ b/src/plugins/projectexplorer/kitmodel.h @@ -97,6 +97,7 @@ private slots: void changeDefaultKit(); void setDirty(); void validateKitNames(); + void isAutoDetectedChanged(); private: QModelIndex index(KitNode *, int column = 0) const; |