diff --git a/app/widgets/shelf.py b/app/widgets/shelf.py index d3cd865..e89d8bb 100644 --- a/app/widgets/shelf.py +++ b/app/widgets/shelf.py @@ -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()))