diff --git a/src/gui/partitionmanagerwidget.cpp b/src/gui/partitionmanagerwidget.cpp index 0f622e4..3541752 100644 --- a/src/gui/partitionmanagerwidget.cpp +++ b/src/gui/partitionmanagerwidget.cpp @@ -669,6 +669,20 @@ bool PartitionManagerWidget::showInsertDialog(Partition& insertedPartition, qint if (result != KDialog::Accepted) return false; } + else if (KMessageBox::warningContinueCancel(this, + i18nc("@info", "You are about to lose all data on partition " + "%1." + "Overwriting one partition with another (or with an image file) will " + "destroy all data on this target partition." + "If you continue now and apply the resulting operation in the main " + "window, all data currently stored on %1 will " + "unrecoverably be overwritten.", + selectedPartition()->deviceNode()), + i18nc("@title:window", "Really Overwrite Existing Partition?"), + KGuiItem(i18nc("@action:button", "Overwrite Partition"), "arrow-right"), + KStandardGuiItem::cancel(), + "reallyOverwriteExistingPartition") == KMessageBox::Cancel) + return false; if (insertedPartition.length() < sourceLength) {