Skip to content

Commit

Permalink
Fixed TTPostController's cancel logic to bring up the confirmation al…
Browse files Browse the repository at this point in the history
…ert box.
  • Loading branch information
buddydvd committed May 16, 2011
1 parent 4cd5ff6 commit 2d62a08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Three20UI/Sources/TTPostController.m
Original file line number Diff line number Diff line change
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 2d62a08

Please sign in to comment.