Remove orphan chapter if empty
This commit is contained in:
@@ -4193,6 +4193,9 @@ public class AudiobookRecorder extends JFrame implements DocumentListener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (orphans.getChildCount() == 0) {
|
||||||
|
bookTreeModel.removeNodeFromParent(orphans);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Chapter getChapterById(String id) {
|
public Chapter getChapterById(String id) {
|
||||||
|
|||||||
Reference in New Issue
Block a user