All pastes #926926 Raw Edit

Stuff

public text v1 · immutable
·published 2008-03-03 22:23 UTC
rendered paste body
void Trash::slotEmpty()
{
    if (containment()) {
        containment()->emitLaunchActivated();
    }
    const QString text(i18nc("@info", "Do you really want to empty the Trash? All items will get deleted."));
    const bool del = KMessageBox::warningContinueCancel(&m_menu,
                                                        text,
                                                        QString(),
                                                        KGuiItem(i18nc("@action:button", "Empty Trash"),
                                                                  KIcon("user-trash"))
                                                        ) == KMessageBox::Continue;
    if (del) {
        KonqOperations::emptyTrash(&m_menu);   //  <-------------- ??? is this  correct ???
    }
}