mirror of
https://github.com/transmission/transmission
synced 2025-03-15 16:29:34 +00:00
display an error when moving data fails
This commit is contained in:
parent
960b303046
commit
50e140d240
1 changed files with 1 additions and 3 deletions
|
@ -465,12 +465,10 @@ int trashDataFile(const char * filename)
|
|||
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateStats" object: nil];
|
||||
else
|
||||
{
|
||||
return;
|
||||
NSAlert * alert = [[NSAlert alloc] init];
|
||||
[alert setMessageText: NSLocalizedString(@"There was an error moving the data file.", "Move error alert -> title")];
|
||||
[alert setInformativeText: [NSString stringWithFormat:
|
||||
NSLocalizedString(@"The move operation of \"%@\" cannot be done.",
|
||||
"Move error alert -> message"), [self name]]];
|
||||
NSLocalizedString(@"The move operation of \"%@\" cannot be done.", "Move error alert -> message"), [self name]]];
|
||||
[alert addButtonWithTitle: NSLocalizedString(@"OK", "Move error alert -> button")];
|
||||
|
||||
[alert runModal];
|
||||
|
|
Loading…
Add table
Reference in a new issue