Browse Source

Added dot in the close button when unsaved

Nick Loose 13 years ago
parent
commit
fd071b3804
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Classes/IJInventoryWindowController.m

+ 4 - 0
Classes/IJInventoryWindowController.m

@@ -79,6 +79,7 @@
 	{
 		dirty = NO; // Slightly hacky -- prevent the alert from being put up again.
 		[self loadWorldAtIndex:attemptedLoadWorldIndex];
+		[self setDocumentEdited: NO];
 	}
 }
 
@@ -177,6 +178,7 @@
 	[armorView setItems:armorInventory];
 	
 	dirty = NO;
+	[self setDocumentEdited: NO];
 	statusTextField.stringValue = @"";
 	loadedWorldIndex = worldIndex;
 }
@@ -255,12 +257,14 @@
 	}
 	
 	dirty = NO;
+	[self setDocumentEdited: NO];
 	statusTextField.stringValue = @"Saved.";
 }
 
 - (void)markDirty
 {
 	dirty = YES;
+	[self setDocumentEdited: YES];
 	statusTextField.stringValue = @"World has unsaved changes.";
 }