From 0d3d5ffa1163381b38f7307f0306997a8ac3841f Mon Sep 17 00:00:00 2001 From: Ignacio Serantes Date: Thu, 7 May 2026 09:58:49 +0200 Subject: [PATCH] V0.9.26 --- bagheeraview.py | 7 ++++++- pyproject.toml | 4 ++-- setup.py | 2 +- widgets.py | 2 +- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/bagheeraview.py b/bagheeraview.py index d670d0c..0110eb8 100755 --- a/bagheeraview.py +++ b/bagheeraview.py @@ -2257,6 +2257,9 @@ class MainWindow(QMainWindow): current_vis_row = current_proxy_idx.row() total_visible = self.proxy_model.rowCount() + if total_visible == 0: + return + grid_size = self.thumbnail_view.gridSize() if grid_size.width() == 0: return @@ -2273,7 +2276,7 @@ class MainWindow(QMainWindow): elif e.key() == Qt.Key_Up: next_vis_row -= cols elif e.key() in (Qt.Key_Return, Qt.Key_Enter): - if current_proxy_idx.isValid(): + if current_proxy_idx and current_proxy_idx.isValid(): self.open_viewer(current_proxy_idx) return else: @@ -4497,6 +4500,8 @@ class MainWindow(QMainWindow): UITexts.CONTEXT_MENU_OPEN) full_path = os.path.abspath( self.proxy_model.data(selected_indexes[0], PATH_ROLE)) + p_data = self.proxy_model.data(selected_indexes[0], PATH_ROLE) + full_path = os.path.abspath(p_data) if p_data else "" self.populate_open_with_submenu(open_submenu, full_path) action_open_fullscreen = menu.addAction( diff --git a/pyproject.toml b/pyproject.toml index 1ee5e09..c16a5b5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ authors = [ description = "Bagheera Image Viewer - An image viewer for KDE with Baloo in mind" readme = "README.md" requires-python = ">=3.8" -license = { text = "MIT License" } +#license = { text = "MIT License" } classifiers = [ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", @@ -56,7 +56,7 @@ py-modules = [ "imagecontroller", "metadatamanager", "propertiesdialog", - "thumbnailwidget", + #"thumbnailwidget", "duplicatecache", "duplicatedialog", "widgets", diff --git a/setup.py b/setup.py index 43e04e1..d522d39 100644 --- a/setup.py +++ b/setup.py @@ -39,7 +39,7 @@ setup( "filesystemwatcher", "metadatamanager", "propertiesdialog", - "thumbnailwidget", + #"thumbnailwidget", "duplicatecache", "duplicatedialog", "widgets", diff --git a/widgets.py b/widgets.py index f43af2d..55d578c 100644 --- a/widgets.py +++ b/widgets.py @@ -414,7 +414,7 @@ class TagEditWidget(QWidget): if not full_path: return "" words = full_path.replace('/', ' ').split() - search_terms = [f"tags:'{word}'" for word in words if word] + search_terms = [f"tags='{word}'" for word in words if word] return " ".join(search_terms) def _get_current_query_text(self):