Revision: 27463
http://sourceforge.net/p/bibdesk/svn/27463
Author: hofman
Date: 2022-05-23 08:51:31 +0000 (Mon, 23 May 2022)
Log Message:
-----------
use Local-Url field for represented filename of editor window when not using
linked file
Modified Paths:
--------------
trunk/bibdesk/BDSKEditor.m
Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m 2022-05-23 06:30:25 UTC (rev 27462)
+++ trunk/bibdesk/BDSKEditor.m 2022-05-23 08:51:31 UTC (rev 27463)
@@ -310,7 +310,7 @@
- (void)synchronizeWindowTitleWithDocumentName {
[super synchronizeWindowTitleWithDocumentName];
// replace the proxy icon with the first linked file, somehow passing nil
does not work
- [[self window] setRepresentedFilename:[[[publication localFiles]
firstObject] path] ?: @""];
+ [[self window] setRepresentedFilename:[[publication localURL] path] ?:
@""];
}
- (void)dealloc{
@@ -2420,7 +2420,8 @@
if([changeKey isEqualToString:BDSKLocalFileString]){
[fileView reloadIcons];
- [self synchronizeWindowTitleWithDocumentName];
+ if ([[NSUserDefaults standardUserDefaults]
boolForKey:BDSKUseLocalUrlAndUrlKey] == NO)
+ [self synchronizeWindowTitleWithDocumentName];
[self updatePreviewing];
}
else if([changeKey isEqualToString:BDSKRemoteURLString]){
@@ -2518,7 +2519,8 @@
else if([changeKey isEqualToString:BDSKColorString] == NO){
// this is a normal field displayed in the tableView
- if([changeKey isEqualToString:BDSKTitleString] || [changeKey
isEqualToString:BDSKChapterString] || [changeKey
isEqualToString:BDSKPagesString])
+ if([changeKey isEqualToString:BDSKTitleString] || [changeKey
isEqualToString:BDSKChapterString] || [changeKey
isEqualToString:BDSKPagesString] ||
+ ([[NSUserDefaults standardUserDefaults]
boolForKey:BDSKUseLocalUrlAndUrlKey] && [changeKey
isEqualToString:BDSKLocalUrlString]))
[self synchronizeWindowTitleWithDocumentName];
else if([changeKey isPersonField])
[authorTableView reloadData];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit