Setup project folder after saving single untitled document

This commit is contained in:
Allan Odgaard
2014-08-22 15:38:21 +02:00
parent 34965c230d
commit 881b83cb50

View File

@@ -172,6 +172,8 @@ namespace
case did_change_path:
[_self setDocumentPath:[NSString stringWithCxxString:document->path()]];
[_self setDocumentDisplayName:[NSString stringWithCxxString:document->display_name()]];
if(!_self.projectPath)
_self.projectPath = [NSString stringWithCxxString:path::parent(document->path())];
break;
case did_change_on_disk_status: [_self setDocumentIsOnDisk:document->is_on_disk()]; break;