homescreenapp/stateplugins/hsmenuworkerstateplugin/src/hscollectionnamestate.cpp
changeset 77 4b195f3bea29
parent 60 30f14686fb04
child 81 7dd137878ff8
equal deleted inserted replaced
61:2b1b11a301d2 77:4b195f3bea29
   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 {