Don’t suppress file browser updates when showing field editor

Reload was suppressed because there is no good way to reload a table view when the field editor contains uncommitted changes. I decided it’s probably better to lose these changes than show stale content, as for example the change might remove the item being edited, as would be the case when undoing New Document or New Folder.

Closes #886.
This commit is contained in:
Allan Odgaard
2013-04-09 20:35:08 +07:00
parent d45adf2fed
commit 253ba83ed2

View File

@@ -343,7 +343,10 @@ static NSSet* VisibleItems (NSOutlineView* outlineView, FSItem* root, NSMutableS
--itemsReloading;
if([outlineView editedRow] != -1)
return; // FIXME Queue reload while editing a cell
{
self.pendingEditURL = [[outlineView itemAtRow:[outlineView editedRow]] url];
[outlineView cancelOperation:self]; // TODO Grab the field editors string value and restore later
}
if(recursive)
{