From 80c358f9473fed07f60266ca98db6dded4e8e55c Mon Sep 17 00:00:00 2001 From: Allan Odgaard Date: Thu, 10 Jan 2013 18:34:33 +0100 Subject: [PATCH] Remove unnecessary hack The issue this code solved was that setting the proxy icon via represented file before a file actually exists on disk would lead to no icon so we would have to update it again after a successful save. This however is already done (by the save callback passed in). --- Frameworks/DocumentWindow/src/DocumentSaveHelper.mm | 3 --- 1 file changed, 3 deletions(-) diff --git a/Frameworks/DocumentWindow/src/DocumentSaveHelper.mm b/Frameworks/DocumentWindow/src/DocumentSaveHelper.mm index 87e1a4dc..ec0804e0 100644 --- a/Frameworks/DocumentWindow/src/DocumentSaveHelper.mm +++ b/Frameworks/DocumentWindow/src/DocumentSaveHelper.mm @@ -206,8 +206,5 @@ namespace documents.pop_back(); if(flag) [self saveNextDocument]; - - if(flag && [[window delegate] respondsToSelector:@selector(updateProxyIcon)]) - [[window delegate] performSelector:@selector(updateProxyIcon)]; // FIXME The delegate needs to update proxy icon based on “exists on disk” notifications from document_t } @end