homescreenapp/stateplugins/hsmenuworkerstateplugin/src/hscollectionnamestate.cpp
changeset 71 1db7cc813a4e
parent 62 341166945d65
child 81 7dd137878ff8
equal deleted inserted replaced
69:87476091b3f5 71:1db7cc813a4e
   109 // ---------------------------------------------------------------------------
   109 // ---------------------------------------------------------------------------
   110 //
   110 //
   111 void HsCollectionNameState::dialogFinished(HbAction* finishedAction)
   111 void HsCollectionNameState::dialogFinished(HbAction* finishedAction)
   112 {
   112 {
   113     if (finishedAction == mCollectionNameDialog->actions().value(0)) {
   113     if (finishedAction == mCollectionNameDialog->actions().value(0)) {
   114         QString newName(mCollectionNameDialog->newName(mCollectionNameDialog->value().toString(), true));
   114         QString newName(mCollectionNameDialog->uniqueCollectionName());
   115         if (mItemId) {
   115         if (mItemId) {
   116             if (newName != HsMenuService::getName(mItemId)) {
   116             if (newName != HsMenuService::getName(mItemId)) {
   117                 HsMenuService::renameCollection(mItemId, newName);
   117                 HsMenuService::renameCollection(mItemId, newName);
   118             }
   118             }
   119         } else {
   119         } else {