Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 207,213d206
- < //FIXME: should use KMessageBox::createKMessageBox so that it doesn't block the whole app!
- < const bool del = KMessageBox::warningContinueCancel(&m_menu,
- < text,
- < QString(),
- < KGuiItem(i18nc("@action:button", "Empty Trash"),
- < KIcon("user-trash"))
- < ) == KMessageBox::Continue;
- 215c208,217
- < if (del) {
- ---
- > KDialog *dialog = new KDialog;
- > dialog->setWindowTitle(i18n("Empty Trash"));
- > dialog->setButtons(KDialog::Yes|KDialog::No);
- > dialog->setButtonText(KDialog::Yes, i18n("Empty Trash"));
- > dialog->setButtonText(KDialog::No, i18n("Cancel"));
- >
- > int answer = KMessageBox::createKMessageBox(dialog, KIcon("user-trash"), text,
- > QStringList(), QString(), 0,
- > KMessageBox::Notify);
- > if (answer==KDialog::Yes) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement