Don't copy sentence files if moving within book
This commit is contained in:
@@ -2891,7 +2891,9 @@ public class AudiobookRecorder extends JFrame implements DocumentListener {
|
|||||||
to.add(snt);
|
to.add(snt);
|
||||||
snt.setParentBook(to.getBook());
|
snt.setParentBook(to.getBook());
|
||||||
File destination = snt.getFile();
|
File destination = snt.getFile();
|
||||||
Files.copy(source.toPath(), destination.toPath());
|
if (from.getBook() != to.getBook()) {
|
||||||
|
Files.copy(source.toPath(), destination.toPath());
|
||||||
|
}
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user