From 768673c687e72a9a244dc08d177d3b144a3a5a82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 27 Feb 2004 19:02:36 +0000 Subject: [PATCH] Changed the default button to remove the attribute, as that's a bit more convenient and actually shows some trust in the users decision :-) Also changed the text to make clear that this action is not covered by the undo functionality. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6775 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/diskprobe/AttributeWindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apps/diskprobe/AttributeWindow.cpp b/src/apps/diskprobe/AttributeWindow.cpp index 080acbef9c..cd25fe92a5 100644 --- a/src/apps/diskprobe/AttributeWindow.cpp +++ b/src/apps/diskprobe/AttributeWindow.cpp @@ -235,13 +235,13 @@ AttributeWindow::MessageReceived(BMessage *message) char buffer[1024]; snprintf(buffer, sizeof(buffer), "Do you really want to remove the attribute \"%s\" from the file \"%s\"?\n\n" - "The contents of the attribute will get lost if you click on \"Remove\".", + "You cannot undo this action.", fAttribute, Ref().name); int32 chosen = (new BAlert("DiskProbe request", - buffer, "Remove", "Cancel", NULL, + buffer, "Cancel", "Remove", NULL, B_WIDTH_AS_USUAL, B_WARNING_ALERT))->Go(); - if (chosen == 0) { + if (chosen == 1) { BNode node(&Ref()); if (node.InitCheck() == B_OK) node.RemoveAttr(fAttribute);