controlpanelui/src/cpplugins/profileactivatorplugin/src/cpprofileactivatordialog.cpp
changeset 33 0cfa53de576f
parent 21 2883a5458389
--- a/controlpanelui/src/cpplugins/profileactivatorplugin/src/cpprofileactivatordialog.cpp	Thu Aug 05 11:28:29 2010 +0800
+++ b/controlpanelui/src/cpplugins/profileactivatorplugin/src/cpprofileactivatordialog.cpp	Tue Aug 24 10:56:32 2010 +0800
@@ -78,13 +78,6 @@
     
     // the best choice is no need to convert the index to id
     mProfileModel.activateProfile(mProfileIds.at(currentIndex));
-    // ret should be remove from here
-    // no invalid profile exsit
-    QString profileName = mProfileModel.profileName(mProfileModel.activeProfileId());
-    //change the descripton of entry item
-    if (CpSettingFormEntryItemData *entryItem = qobject_cast<CpSettingFormEntryItemData*>(mProfileActivator)) {
-        entryItem->setDescription(profileName);
-    }
 }
 void CpProfileActivatorDialog::cancelProfileSelection()
 {