Patch by Bryce Groff: Correctly notify the user when committing the
modifications for deleting a partition failed. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32095 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
1d099cad03
commit
4199b36807
@ -1024,7 +1024,13 @@ MainWindow::_Delete(BDiskDevice* disk, partition_id selectedPartition)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
modificationPreparer.CommitModifications();
|
ret = modificationPreparer.CommitModifications();
|
||||||
|
|
||||||
|
if (ret != B_OK) {
|
||||||
|
_DisplayPartitionError("Failed to delete the partition. "
|
||||||
|
"This operation is exiting.\nNo changes have been made!\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
_ScanDrives();
|
_ScanDrives();
|
||||||
fDiskView->ForceUpdate();
|
fDiskView->ForceUpdate();
|
||||||
|
Loading…
Reference in New Issue
Block a user