profile-item: do not change item at first time.
authorminkee.lee <minkee.lee@samsung.com>
Thu, 29 Oct 2015 11:20:26 +0000 (20:20 +0900)
committerminkee.lee <minkee.lee@samsung.com>
Fri, 30 Oct 2015 02:25:54 +0000 (11:25 +0900)
In device template dialog, profile selection makes item changed.
But when dialog is created, this should be ignored.

Change-Id: I63a15e3c48c6b88ce2c66d00790f7fcf732c08b8
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
src/org/tizen/emulator/manager/ui/renewal/item/modify/baseimage/PlatformItem.java
src/org/tizen/emulator/manager/ui/renewal/item/modify/common/ProfileItem.java

index 4d01870..2b1e691 100644 (file)
@@ -62,6 +62,7 @@ public class PlatformItem extends ComboItem {
                item.create();
 
                createCombo(item, COMBO_WIDTH);
+               profile = ProfileList.getProfile(getDialog().getPropertyValue().getProfile());
                initPlatformCombo();
        }
 
index 7469b54..afde4f5 100644 (file)
@@ -252,7 +252,7 @@ public class ProfileItem extends ModifyDialogItem {
                for (String profile : buttonMap.keySet()) {
                        if (profile.equals(currentProfile)) {
                                buttonMap.get(profile).selectRadio();
-                               changedProfile(profile);
+                               getDialog().getPropertyValue().setProfile(profile);
                        }
                }
        }