We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02ee15a commit 57d3229Copy full SHA for 57d3229
src/windows/main_window.py
@@ -399,14 +399,14 @@ def actionTitle_trigger(self, event):
399
400
def actionEditTitle_trigger(self, event):
401
402
- # Get requested view item
403
- index = self.filesView.indexAt(event.pos())
404
-
405
- # look up svg title file ID from column 5 of that row
406
- selected_id = index.model().sibling(index.row(), 5, index.parent()).data()
+ # Loop through selected files (set 1 selected file if more than 1)
+ for f in self.selected_files():
+ if f.data.get("path").endswith(".svg"):
+ file_path = f.data.get("path")
+ break
407
408
- file = File.get(id=selected_id)
409
- file_path = file.data.get("path")
+ if not file_path:
+ return
410
411
# show dialog for editing title
412
from windows.title_editor import TitleEditor
0 commit comments