Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #560 from buddydvd/patch-3
Browse files Browse the repository at this point in the history
Fixed TTPostController's cancel logic to bring up the confirmation alert
  • Loading branch information
jverkoey committed May 16, 2011
2 parents 4cd5ff6 + 2d62a08 commit f7a93be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Three20UI/Sources/TTPostController.m
Expand Up @@ -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:
Expand Down

0 comments on commit f7a93be

Please sign in to comment.