| 88 | } |
| 89 | |
| 90 | void HistoryDialog::clearUndoStack() { |
| 91 | if (KMessageBox::questionTwoActions(this, |
| 92 | i18n("Do you really want to clear the undo history?"), |
| 93 | i18n("Clear History"), |
| 94 | KStandardGuiItem::clear(), |
| 95 | KStandardGuiItem::cancel()) |
| 96 | == KMessageBox::PrimaryAction) |
| 97 | m_undoStack->clear(); |
| 98 | } |