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:
parent
fe8682ea45
commit
768673c687
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user