Permalink
Browse files

after performing a database upgrade, always flush the database immedi…

…ately
  • Loading branch information...
1 parent 4f90ec1 commit dfd17cd25f79b440889cd9b76e3af3a52fa8a401 Zachary Schneirov committed Feb 8, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 NotationController.m
@@ -183,6 +183,7 @@ - (void)upgradeDatabaseIfNecessary {
if ([notationPrefs epochIteration] < EPOC_ITERATION) {
NSLog(@"epociteration was upgraded from %u to %u", [notationPrefs epochIteration], EPOC_ITERATION);
notesChanged = YES;
+ [self flushEverything];
} else if ([notationPrefs epochIteration] > EPOC_ITERATION) {
if (NSRunCriticalAlertPanel(NSLocalizedString(@"Warning: this database was created by a newer version of Notational Velocity. Continue anyway?", nil),
NSLocalizedString(@"If you make changes, some settings and metadata will be lost.", nil),

0 comments on commit dfd17cd

Please sign in to comment.