This commit is contained in:
Ignacio Serantes
2026-05-07 09:58:49 +02:00
parent 8025bef8d3
commit 0d3d5ffa11
4 changed files with 10 additions and 5 deletions

View File

@@ -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(