Browse Source

Taking care of null characters while entering feedback.

v1.2.4
Abhishek Banthia 8 years ago
parent
commit
051e1da193
  1. 4
      Clocker/App Feedback/CLAppFeedbackWindowController.m

4
Clocker/App Feedback/CLAppFeedbackWindowController.m

@ -87,7 +87,9 @@ static CLAppFeedbackWindowController *sharedFeedbackWindow = nil;
- (BOOL)didUserEnterFeedback
{
if (self.feedbackTextView.string.length == 0)
NSString *cleanedUpString = [self.feedbackTextView.string stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
if (cleanedUpString.length == 0)
{
self.informativeText.stringValue = CLFeedbackNotEnteredErrorMessage;
[NSTimer scheduledTimerWithTimeInterval:5.0

Loading…
Cancel
Save