Skip to content

Commit

Permalink
New book now places in specified location in shelf
Browse files Browse the repository at this point in the history
  • Loading branch information
brookite committed Oct 12, 2023
1 parent c855735 commit 16867c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/widgets/shelf.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ def dropEvent(self, event: QDropEvent) -> None:
for url in urls:
if url.isLocalFile():
self.owner.add_book(url.toLocalFile(), True)
self.replace_book(len(self.books) - 1, self._find_book_by_pos(event.pos()))
else:
new_index = self._find_book_by_pos(event.pos())
old_index = self._book_index(*self._get_index_by_mime(event.mimeData()))
Expand Down

0 comments on commit 16867c4

Please sign in to comment.