Revision: 28854
http://sourceforge.net/p/bibdesk/svn/28854
Author: hofman
Date: 2024-04-06 21:14:57 +0000 (Sat, 06 Apr 2024)
Log Message:
-----------
always reload table when typw and fields change
Modified Paths:
--------------
trunk/bibdesk/BDSKTextImportController.m
Modified: trunk/bibdesk/BDSKTextImportController.m
===================================================================
--- trunk/bibdesk/BDSKTextImportController.m 2024-04-06 21:00:37 UTC (rev
28853)
+++ trunk/bibdesk/BDSKTextImportController.m 2024-04-06 21:14:57 UTC (rev
28854)
@@ -94,7 +94,7 @@
- (void)loadFromFileURL:(NSURL *)url;
- (void)setShowingWebView:(BOOL)showWebView;
- (void)setupTypeUI;
-- (void)updateType;
+- (void)updateTypeAndFields;
- (void)updateColumnWidths;
- (void)setLoading:(BOOL)loading;
@@ -567,7 +567,7 @@
[citeKeyField setStringValue:[item citeKey]];
[self setCiteKeyDuplicateWarning:[item isValidCiteKey:[item citeKey]]
== NO];
} else if ([changeKey isEqualToString:BDSKPubTypeString]) {
- [self updateType];
+ [self updateTypeAndFields];
} else {
[itemTableView reloadData];
}
@@ -715,12 +715,10 @@
[itemTypeButton removeAllItems];
[itemTypeButton addItemsWithTitles:[[BDSKTypeManager sharedManager]
types]];
- [self updateType];
-
- [itemTableView reloadData];
+ [self updateTypeAndFields];
}
-- (void)updateType{
+- (void)updateTypeAndFields{
NSString *type = [[self publication] pubType];
[itemTypeButton selectItemWithTitle:type];
@@ -744,6 +742,8 @@
}
[self updateColumnWidths];
+
+ [itemTableView reloadData];
}
- (void)updateColumnWidths {
@@ -1362,7 +1362,7 @@
NSString *bibtexType = [typeMan bibTeXTypeForDublinCoreType:[metaTagDict
objectForKey:@"DC.type"]] ?: BDSKMiscString;
if ([[item pubType] isEqualToString:bibtexType])
- [self updateType];
+ [self updateTypeAndFields];
else
[item setPubType:bibtexType];
}
@@ -1479,7 +1479,7 @@
if ([[item pubType] isEqualToString:[pub pubType]])
[item setPubType:[pub pubType]];
else
- [self updateType];
+ [self updateTypeAndFields];
}
- (void)autoDiscoverDataFromString:(NSString *)string{
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