From f142407b03b984b38e7600f4de527d4a8b6a4e4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 24 Jan 2013 01:12:47 +0100 Subject: [PATCH] DriveSetup: improved error reporting when deleting a partition. --- src/apps/drivesetup/MainWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/drivesetup/MainWindow.cpp b/src/apps/drivesetup/MainWindow.cpp index 8850b59765..e0cc9ff8be 100644 --- a/src/apps/drivesetup/MainWindow.cpp +++ b/src/apps/drivesetup/MainWindow.cpp @@ -1145,7 +1145,7 @@ MainWindow::_Delete(BDiskDevice* disk, partition_id selectedPartition) ret = parent->DeleteChild(partition->Index()); if (ret != B_OK) { _DisplayPartitionError( - B_TRANSLATE("Could not delete the selected partition.")); + B_TRANSLATE("Could not delete the selected partition."), NULL, ret); return; } @@ -1153,7 +1153,7 @@ MainWindow::_Delete(BDiskDevice* disk, partition_id selectedPartition) if (ret != B_OK) { _DisplayPartitionError(B_TRANSLATE("Failed to delete the partition. " - "No changes have been written to disk.")); + "No changes have been written to disk."), NULL, ret); return; }