We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdc9822 commit 2d4f516Copy full SHA for 2d4f516
jabgui/src/main/java/org/jabref/gui/libraryproperties/general/GeneralPropertiesViewModel.java
@@ -271,7 +271,8 @@ public void togglePath(StringProperty fileDirectory) {
271
if (!currPath.isAbsolute()) {
272
newPath = parentPath.resolve(fileDirectory.get()).toAbsolutePath().toString();
273
} else if (currPath.isAbsolute()) {
274
- newPath = parentPath.relativize(currPath).toString();
+ Path rel = parentPath.relativize(currPath);
275
+ newPath = rel.toString().isEmpty() ? "." : rel.toString();
276
} else {
277
// case: convert to relative path and currPath is relative
278
return;
0 commit comments