-bool DolphinMainWindow::UndoUiInterface::copiedFileWasModified(const KUrl& src,\r
- const KUrl& dest,\r
- time_t /*srcTime*/,\r
- time_t destTime)\r
-{\r
- // The following code has been taken from libkonq/konq_undo.cc\r
- // Copyright (C) 2000 Simon Hausmann <hausmann@kde.org>\r
- // Copyright (C) 2006 David Faure <faure@kde.org>\r
- const QDateTime destDt = QDateTime::fromTime_t(destTime);\r
- const QString timeStr = KGlobal::locale()->formatDateTime(destDt, true /* short */);\r
- return KMessageBox::warningContinueCancel(\r
- m_mainWin,\r
- i18n( "The file %1 was copied from %2, but since then it has apparently been modified at %3.\n"\r
- "Undoing the copy will delete the file, and all modifications will be lost.\n"\r
- "Are you sure you want to delete %4?", dest.pathOrUrl(), src.pathOrUrl(), timeStr, dest.pathOrUrl()),\r
- i18n( "Undo File Copy Confirmation" ),\r
- KStandardGuiItem::cont(),\r
- QString(),\r
- KMessageBox::Notify | KMessageBox::Dangerous ) == KMessageBox::Continue;\r
-}\r
-\r