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
This commit is contained in:
@@ -235,13 +235,13 @@ AttributeWindow::MessageReceived(BMessage *message)
|
|||||||
char buffer[1024];
|
char buffer[1024];
|
||||||
snprintf(buffer, sizeof(buffer),
|
snprintf(buffer, sizeof(buffer),
|
||||||
"Do you really want to remove the attribute \"%s\" from the file \"%s\"?\n\n"
|
"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);
|
fAttribute, Ref().name);
|
||||||
|
|
||||||
int32 chosen = (new BAlert("DiskProbe request",
|
int32 chosen = (new BAlert("DiskProbe request",
|
||||||
buffer, "Remove", "Cancel", NULL,
|
buffer, "Cancel", "Remove", NULL,
|
||||||
B_WIDTH_AS_USUAL, B_WARNING_ALERT))->Go();
|
B_WIDTH_AS_USUAL, B_WARNING_ALERT))->Go();
|
||||||
if (chosen == 0) {
|
if (chosen == 1) {
|
||||||
BNode node(&Ref());
|
BNode node(&Ref());
|
||||||
if (node.InitCheck() == B_OK)
|
if (node.InitCheck() == B_OK)
|
||||||
node.RemoveAttr(fAttribute);
|
node.RemoveAttr(fAttribute);
|
||||||
|
|||||||
Reference in New Issue
Block a user