[Playlist View] Prevent assigning nil textField
Prevent somehow assigning nil textField contents, as well as the tooltip text. Signed-off-by: Christopher Snowhill <kode54@gmail.com>xcode15
parent
b04be78f20
commit
86dfe8b518
|
@ -544,11 +544,11 @@ static void *playlistControllerContext = &playlistControllerContext;
|
||||||
NSFont *font = [NSFont monospacedDigitSystemFontOfSize:fontSize weight:NSFontWeightRegular];
|
NSFont *font = [NSFont monospacedDigitSystemFontOfSize:fontSize weight:NSFontWeightRegular];
|
||||||
|
|
||||||
cellView.textField.font = font;
|
cellView.textField.font = font;
|
||||||
cellView.textField.stringValue = cellTextTruncated;
|
cellView.textField.stringValue = cellTextTruncated ?: @"";
|
||||||
cellView.textField.alignment = cellTextAlignment;
|
cellView.textField.alignment = cellTextAlignment;
|
||||||
|
|
||||||
if(cellView.textField.intrinsicContentSize.width > cellView.textField.frame.size.width - 4)
|
if(cellView.textField.intrinsicContentSize.width > cellView.textField.frame.size.width - 4)
|
||||||
cellView.textField.toolTip = cellTextTruncated;
|
cellView.textField.toolTip = cellTextTruncated ?: @"";
|
||||||
else
|
else
|
||||||
cellView.textField.toolTip = [pe statusMessage];
|
cellView.textField.toolTip = [pe statusMessage];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue