Permalink
Browse files

Merge pull request #560 from buddydvd/patch-3

Fixed TTPostController's cancel logic to bring up the confirmation alert
  • Loading branch information...
2 parents 4cd5ff6 + 2d62a08 commit f7a93bebde5a75164a4ff6552d9f3cf4b25f8cd1 @jverkoey jverkoey committed May 16, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Three20UI/Sources/TTPostController.m
@@ -518,7 +518,7 @@ - (void)post {
///////////////////////////////////////////////////////////////////////////////////////////////////
- (void)cancel {
- if (!TTIsStringWithAnyText(_textView.text)
+ if (TTIsStringWithAnyText(_textView.text)
&& !_textView.text.isWhitespaceAndNewlines
&& !(_defaultText && [_defaultText isEqualToString:_textView.text])) {
UIAlertView* cancelAlertView = [[[UIAlertView alloc] initWithTitle:

0 comments on commit f7a93be

Please sign in to comment.