-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import into current libarary issues wrong message #6266
Comments
Hey! I am a first-time contributor. I have successfully reproduced this issue. May I take a stab at it? |
This is a duplicate of #4841. However, there is already a possible solution outlined in the comment: |
Will do. Thank you! |
I attempted to implement the outlined solution but I believe changing the return type would require modifying the Dialog.java class, which I am unable to do because it is read-only. |
The idea is to modify the the return type of the import Dialog class. You can modify the parameter in the extends clause and then change the result converter to return boolean |
Oh ok, I see now. Thank you. |
This change fixes JabRef#6266 in which an erroneous message "import cancelled" is displayed when importing into the current library. This fix was accomplished by modifying the parameter of the extends clause of the ImportEntriesDialog class to have a return type of Boolean rather than Void and making setResultConverter return false rather than null.
* Fix import into current library issuing wrong message (#6266) This change fixes #6266 in which an erroneous message "import cancelled" is displayed when importing into the current library. This fix was accomplished by modifying the parameter of the extends clause of the ImportEntriesDialog class to have a return type of Boolean rather than Void and making setResultConverter return false rather than null. * Reformat ImportEntriesDialog and Fix setResultConverter return value in FindUnlinkedFilesDialog I have added back the proper indentation for line 79 of ImportEntriesDialog and changed the return value to Boolean and returned false in FindUnlinkedFilesDialog. Co-authored-by: Christoph <[email protected]>
This is with version 5.1 (current).
When one chooses "import into current libary" from File-->Import menu and opens a
new bib file and go ahead with import you first get a message "import cancelled" and
a few seconds later "import complete". Import is done properly but the erreneous
message "import cancelled" should not be there.
The text was updated successfully, but these errors were encountered: