Stuff
public text v1 · immutablevoid 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 ???
}
}