controlpanelui/src/cpplugins/profileactivatorplugin/src/cpprofileactivatordialog.cpp
equal
deleted
inserted
replaced
76 return; |
76 return; |
77 } |
77 } |
78 |
78 |
79 // the best choice is no need to convert the index to id |
79 // the best choice is no need to convert the index to id |
80 mProfileModel.activateProfile(mProfileIds.at(currentIndex)); |
80 mProfileModel.activateProfile(mProfileIds.at(currentIndex)); |
81 // ret should be remove from here |
|
82 // no invalid profile exsit |
|
83 QString profileName = mProfileModel.profileName(mProfileModel.activeProfileId()); |
|
84 //change the descripton of entry item |
|
85 if (CpSettingFormEntryItemData *entryItem = qobject_cast<CpSettingFormEntryItemData*>(mProfileActivator)) { |
|
86 entryItem->setDescription(profileName); |
|
87 } |
|
88 } |
81 } |
89 void CpProfileActivatorDialog::cancelProfileSelection() |
82 void CpProfileActivatorDialog::cancelProfileSelection() |
90 { |
83 { |
91 |
84 |
92 } |
85 } |