Changeset View
Changeset View
Standalone View
Standalone View
kcms/kfontinst/kcmfontinst/GroupList.cpp
Show First 20 Lines • Show All 563 Lines • ▼ Show 20 Line(s) | |||||
564 | 564 | | |||
565 | bool CGroupList::removeGroup(const QModelIndex &idx) | 565 | bool CGroupList::removeGroup(const QModelIndex &idx) | ||
566 | { | 566 | { | ||
567 | if(idx.isValid()) | 567 | if(idx.isValid()) | ||
568 | { | 568 | { | ||
569 | CGroupListItem *grp=static_cast<CGroupListItem *>(idx.internalPointer()); | 569 | CGroupListItem *grp=static_cast<CGroupListItem *>(idx.internalPointer()); | ||
570 | 570 | | |||
571 | if(grp && grp->isCustom() && | 571 | if(grp && grp->isCustom() && | ||
572 | KMessageBox::Yes==KMessageBox::warningYesNo(itsParent, | 572 | KMessageBox::Continue==KMessageBox::warningContinueCancel(itsParent, | ||
573 | i18n("<p>Do you really want to remove \'<b>%1</b>\'?</p>" | 573 | i18n("<p>Do you really want to remove \'<b>%1</b>\'?</p>" | ||
574 | "<p><i>This will only remove the group, and not " | 574 | "<p><i>This will only remove the group, and not " | ||
575 | "the actual fonts.</i></p>", grp->name()), | 575 | "the actual fonts.</i></p>", grp->name()), | ||
576 | i18n("Remove Group"), KGuiItem(i18n("Remove"), "list-remove", | 576 | i18n("Remove Group"), KGuiItem(i18n("Remove"), "list-remove", | ||
577 | i18n("Remove group")))) | 577 | i18n("Remove group")))) | ||
578 | { | 578 | { | ||
579 | itsModified=true; | 579 | itsModified=true; | ||
580 | itsGroups.removeAll(grp); | 580 | itsGroups.removeAll(grp); | ||
▲ Show 20 Lines • Show All 446 Lines • Show Last 20 Lines |