|
Lines 562-568
Link Here
|
| 562 |
QPtrListIterator<ContactViewItem> cvi_it(e->cvi); |
562 |
QPtrListIterator<ContactViewItem> cvi_it(e->cvi); |
| 563 |
for(ContactViewItem *i; (i = cvi_it.current()); ++cvi_it) { |
563 |
for(ContactViewItem *i; (i = cvi_it.current()); ++cvi_it) { |
| 564 |
i->setup(); |
564 |
i->setup(); |
| 565 |
i->resetName(); |
|
|
| 566 |
} |
565 |
} |
| 567 |
} |
566 |
} |
| 568 |
} |
567 |
} |
|
Lines 1683-1689
Link Here
|
| 1683 |
|
1682 |
|
| 1684 |
if((i->type() == ContactViewItem::Contact && i->u()->inList()) || |
1683 |
if((i->type() == ContactViewItem::Contact && i->u()->inList()) || |
| 1685 |
(i->type() == ContactViewItem::Group && i->groupType() == ContactViewItem::gUser && i->groupName() != ContactView::tr("Hidden"))) { |
1684 |
(i->type() == ContactViewItem::Group && i->groupType() == ContactViewItem::gUser && i->groupName() != ContactView::tr("Hidden"))) { |
| 1686 |
i->resetName(); |
1685 |
i->setup(); |
| 1687 |
i->setRenameEnabled(0, true); |
1686 |
i->setRenameEnabled(0, true); |
| 1688 |
i->startRename(0); |
1687 |
i->startRename(0); |
| 1689 |
i->setRenameEnabled(0, false); |
1688 |
i->setRenameEnabled(0, false); |
|
Lines 1773-1779
Link Here
|
| 1773 |
//e->u.setName(text); |
1772 |
//e->u.setName(text); |
| 1774 |
//i->setContact(&e->u); |
1773 |
//i->setContact(&e->u); |
| 1775 |
actionRename(e->u.jid(), text); |
1774 |
actionRename(e->u.jid(), text); |
| 1776 |
i->resetName(); // to put the status message in if needed |
1775 |
i->setup(); |
| 1777 |
} |
1776 |
} |
| 1778 |
else { |
1777 |
else { |
| 1779 |
// no change? |
1778 |
// no change? |
|
Lines 2868-2875
Link Here
|
| 2868 |
repl.setPattern("<!subscription>"); txt.replace(repl, QString("<br>") + ins); |
2867 |
repl.setPattern("<!subscription>"); txt.replace(repl, QString("<br>") + ins); |
| 2869 |
} |
2868 |
} |
| 2870 |
// show status? |
2869 |
// show status? |
| 2871 |
if (!static_cast<ContactView*>(QListViewItem::listView())->isShowStatusMsg()) |
2870 |
// if (!static_cast<ContactView*>(QListViewItem::listView())->isShowStatusMsg()) |
| 2872 |
return txt; |
2871 |
// return txt; |
| 2873 |
// resource dependent |
2872 |
// resource dependent |
| 2874 |
UserResourceList srl = d->u->userResourceList(); |
2873 |
UserResourceList srl = d->u->userResourceList(); |
| 2875 |
if(!srl.isEmpty()){ |
2874 |
if(!srl.isEmpty()){ |