@@ -395,20 +395,13 @@ def actionEditTitle_trigger(self, event):
395
395
file = File .get (id = selected_file_id )
396
396
file_path = file .data .get ("path" )
397
397
398
- # Delete thumbnail for this file (it will be recreated soon)
399
- thumb_path = os .path .join (info .THUMBNAIL_PATH , "{}.png" .format (file .id ))
400
-
401
- # Check if thumb exists (and delete it)
402
- if os .path .exists (thumb_path ):
403
- os .remove (thumb_path )
404
-
405
398
# show dialog for editing title
406
399
from windows .title_editor import TitleEditor
407
400
win = TitleEditor (file_path )
408
401
# Run the dialog event loop - blocking interaction on this window during that time
409
402
result = win .exec_ ()
410
403
411
- # Force update of files model (which will rebuild missing thumbnails)
404
+ # Force update of files model (which will rebuild thumbnails)
412
405
get_app ().window .filesTreeView .refresh_view ()
413
406
414
407
# Force update of clips
@@ -919,7 +912,7 @@ def actionPreview_File_trigger(self, event):
919
912
920
913
# Bail out if no file selected
921
914
if not f :
922
- log .info (self .selected_files )
915
+ log .info ("Preview action failed, selected files: {}" . format ( self .selected_files ) )
923
916
return
924
917
925
918
# show dialog
@@ -1205,7 +1198,6 @@ def actionArrowTool_trigger(self, event):
1205
1198
1206
1199
def actionSnappingTool_trigger (self , event ):
1207
1200
log .info ("actionSnappingTool_trigger" )
1208
- log .info (self .actionSnappingTool .isChecked ())
1209
1201
1210
1202
# Enable / Disable snapping mode
1211
1203
self .timeline .SetSnappingMode (self .actionSnappingTool .isChecked ())
@@ -1289,7 +1281,6 @@ def actionPreviousMarker_trigger(self, event):
1289
1281
1290
1282
def actionNextMarker_trigger (self , event ):
1291
1283
log .info ("actionNextMarker_trigger" )
1292
- log .info (self .preview_thread .current_frame )
1293
1284
1294
1285
# Calculate current position (in seconds)
1295
1286
fps = get_app ().project .get ("fps" )
@@ -1432,7 +1423,7 @@ def keyPressEvent(self, event):
1432
1423
self .actionRemoveClip .trigger ()
1433
1424
self .actionRemoveTransition .trigger ()
1434
1425
1435
- # Boiler plate key mappings (mostly for menu support on Ubuntu/Unity)
1426
+ # Menu shortcuts
1436
1427
elif key .matches (self .getShortcutByName ("actionNew" )) == QKeySequence .ExactMatch :
1437
1428
self .actionNew .trigger ()
1438
1429
elif key .matches (self .getShortcutByName ("actionOpen" )) == QKeySequence .ExactMatch :
@@ -1552,8 +1543,9 @@ def keyPressEvent(self, event):
1552
1543
elif key .matches (self .getShortcutByName ("selectNone" )) == QKeySequence .ExactMatch :
1553
1544
self .timeline .ClearAllSelections ()
1554
1545
1555
- # Bubble event on
1556
- event .ignore ()
1546
+ # If we didn't act on the event, forward it to the base class
1547
+ else :
1548
+ super (MainWindow , self ).keyPressEvent (event )
1557
1549
1558
1550
1559
1551
def actionProfile_trigger (self , event ):
@@ -1577,7 +1569,7 @@ def actionSplitClip_trigger(self, event):
1577
1569
1578
1570
# Bail out if no file selected
1579
1571
if not f :
1580
- log .info ( self .selected_files )
1572
+ log .warn ( "Split clip action failed, selected files: {}" . format ( self .selected_files ) )
1581
1573
return
1582
1574
1583
1575
# show dialog
0 commit comments