mirror of https://github.com/vitalif/openscad
Don't print last updated date if it's null
parent
747e52438d
commit
3a517e4a3f
|
@ -60,8 +60,8 @@ bool SparkleAutoUpdater::enableSnapshots()
|
|||
|
||||
QString SparkleAutoUpdater::lastUpdateCheckDate()
|
||||
{
|
||||
NSString *datestring = [NSString stringWithFormat:@"Last checked: %@",
|
||||
[d->updater lastUpdateCheckDate]];
|
||||
NSDate *date = [d->updater lastUpdateCheckDate];
|
||||
NSString *datestring = date ? [NSString stringWithFormat:@"Last checked: %@", date] : @"";
|
||||
return QString::fromUtf8([datestring UTF8String]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue