Don't copy sentence files if moving within book

This commit is contained in:
2020-02-08 20:01:31 +00:00
parent 1b7dd7dfb1
commit 903f8eaa91

View File

@@ -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();
} }