Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.15 KB | None | 0 0
  1. 207,213d206
  2. <     //FIXME: should use KMessageBox::createKMessageBox so that it doesn't block the whole app!
  3. <     const bool del = KMessageBox::warningContinueCancel(&m_menu,
  4. <                                                         text,
  5. <                                                         QString(),
  6. <                                                         KGuiItem(i18nc("@action:button", "Empty Trash"),
  7. <                                                                   KIcon("user-trash"))
  8. <                                                         ) == KMessageBox::Continue;
  9. 215c208,217
  10. <     if (del) {
  11. ---
  12. >     KDialog *dialog = new KDialog;
  13. >     dialog->setWindowTitle(i18n("Empty Trash"));
  14. >     dialog->setButtons(KDialog::Yes|KDialog::No);
  15. >     dialog->setButtonText(KDialog::Yes, i18n("Empty Trash"));
  16. >     dialog->setButtonText(KDialog::No, i18n("Cancel"));
  17. >
  18. >     int answer = KMessageBox::createKMessageBox(dialog, KIcon("user-trash"), text,
  19. >                                                 QStringList(), QString(), 0,
  20. >                                                  KMessageBox::Notify);
  21. >      if (answer==KDialog::Yes) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement