aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CMTextView.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-05-18 20:03:06 +0000
committerstuconnolly <stuart02@gmail.com>2010-05-18 20:03:06 +0000
commit17cd8e717d853946813deda9cb160832b445dfdd (patch)
tree087eba4001d7e1a1f0584b7aea33031f516f8bb3 /Source/CMTextView.m
parentd62f41c9fd22c868d3754917cde5a6d08624f0de (diff)
downloadsequelpro-17cd8e717d853946813deda9cb160832b445dfdd.tar.gz
sequelpro-17cd8e717d853946813deda9cb160832b445dfdd.tar.bz2
sequelpro-17cd8e717d853946813deda9cb160832b445dfdd.zip
Change filesize units to base 2 rather than base 10. Fixes issue #690. Patch provided by Max Lohrmann, thanks Max!.
Diffstat (limited to 'Source/CMTextView.m')
-rw-r--r--Source/CMTextView.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CMTextView.m b/Source/CMTextView.m
index 18059059..94e5a2bb 100644
--- a/Source/CMTextView.m
+++ b/Source/CMTextView.m
@@ -3094,8 +3094,8 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse)
NSAlert *alert = [[NSAlert alloc] init];
[alert addButtonWithTitle:NSLocalizedString(@"OK", @"OK button")];
[alert addButtonWithTitle:NSLocalizedString(@"Cancel", @"cancel button")];
- [alert setInformativeText:[NSString stringWithFormat:NSLocalizedString(@"Do you really want to proceed with %.1f MB of data?", @"message of panel asking for confirmation for inserting large text from dragging action"),
- [filesize unsignedLongValue]/1048576.0]];
+ [alert setInformativeText:[NSString stringWithFormat:NSLocalizedString(@"Do you really want to proceed with %@ of data?", @"message of panel asking for confirmation for inserting large text from dragging action"),
+ [NSString stringForByteSize:[filesize longLongValue]]]];
[alert setHelpAnchor:filepath];
[alert setMessageText:NSLocalizedString(@"Warning",@"warning")];
[alert setAlertStyle:NSWarningAlertStyle];