summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/SparkleAutoUpdater.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SparkleAutoUpdater.mm b/src/SparkleAutoUpdater.mm
index 5176e80..c52e2bb 100644
--- a/src/SparkleAutoUpdater.mm
+++ b/src/SparkleAutoUpdater.mm
@@ -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]);
}
contact: Jan Huwald // Impressum