Compare commits
3 Commits
8025bef8d3
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f3bc2f1e0a | ||
|
|
dffc414182 | ||
|
|
0d3d5ffa11 |
@@ -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(
|
||||
|
||||
@@ -56,7 +56,7 @@ py-modules = [
|
||||
"imagecontroller",
|
||||
"metadatamanager",
|
||||
"propertiesdialog",
|
||||
"thumbnailwidget",
|
||||
#"thumbnailwidget",
|
||||
"duplicatecache",
|
||||
"duplicatedialog",
|
||||
"widgets",
|
||||
|
||||
2
setup.py
2
setup.py
@@ -39,7 +39,7 @@ setup(
|
||||
"filesystemwatcher",
|
||||
"metadatamanager",
|
||||
"propertiesdialog",
|
||||
"thumbnailwidget",
|
||||
#"thumbnailwidget",
|
||||
"duplicatecache",
|
||||
"duplicatedialog",
|
||||
"widgets",
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user