fixed issue trying to copy nil objects to the pasteboard

This commit is contained in:
michael starke
2013-07-03 23:46:05 +02:00
parent df98a9b649
commit 31530ba586
2 changed files with 4 additions and 2 deletions

View File

@@ -396,7 +396,9 @@ NSString *const _toggleFilterUsernameButton = @"SearchUsername";
} }
- (void)_copyToPasteboard:(NSString *)data overlayInfo:(MPOVerlayInfoType)overlayInfoType { - (void)_copyToPasteboard:(NSString *)data overlayInfo:(MPOVerlayInfoType)overlayInfoType {
[[MPPasteBoardController defaultController] copyObjects:@[ data ]]; if(data) {
[[MPPasteBoardController defaultController] copyObjects:@[ data ]];
}
NSImage *infoImage = nil; NSImage *infoImage = nil;
NSString *infoText = nil; NSString *infoText = nil;
switch (overlayInfoType) { switch (overlayInfoType) {

View File

@@ -48,7 +48,7 @@
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>1872</string> <string>1873</string>
<key>LSMinimumSystemVersion</key> <key>LSMinimumSystemVersion</key>
<string>${MACOSX_DEPLOYMENT_TARGET}</string> <string>${MACOSX_DEPLOYMENT_TARGET}</string>
<key>NSHumanReadableCopyright</key> <key>NSHumanReadableCopyright</key>