Eye and speaker icons in a clip can be marked/unmarked in razor and resize modes and with the right button
Bug #553658 reported by
Rodrigo Castelan Carlson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenShot Video Editor |
Fix Released
|
Low
|
Unassigned |
Bug Description
1) Ubuntu 10.04 beta - Guest OS on Virtual Box with Windows 7
2) Ubuntu Software Manager
3) OpenShot 1.1.1
4) Eye and speaker icons in a clip can be marked/unmarked in razor and resize modes and with the right button.
This is an inconvenient, especially if working with short clips or low zoom. I believe this is not the desired behavior.
Changed in openshot: | |
importance: | Undecided → Wishlist |
To post a comment you must log in.
Cenwen, I disagree with setting this bug importance as "wishlist", because it describes a incorrect functioning of the software, i.e., if I want to cut the clip I'm not setting the audio or video. Anyway, this is not important.
To fix this it suffices to do the following changes to the class clip (clip.py):
1) Modify the function 'on_visible_click' to: parent. project. form.get_ toolbar_ options( )
def on_visible_click (self, item, target, event):
# only respond to the first mouse button
if event.button == 1:
# determine what cursor mode is enable (arrow, razor, snap, etc...)
(isArrow, isRazor, isSnap, isResize) = self.parent.
# ARROW MODE
if isArrow:
# --> EXISTING CODE SHIFTED BY TWO TABS
2) Modify the function 'on_audio_click' to: parent. project. form.get_ toolbar_ options( )
def on_audio_click (self, item, target, event):
# only respond to the first mouse button
if event.button == 1:
# determine what cursor mode is enable (arrow, razor, snap, etc...)
(isArrow, isRazor, isSnap, isResize) = self.parent.
# ARROW MODE
if isArrow:
# --> EXISTING CODE SHIFTED BY TWO TABS
While checking this, a related bug was revealed. When using the razor, and only with the razor, if I cut a clip above the video or audio icons, the cursor is reset to arrow (wrong), but stays in the razor mode (correct). This happens because of parent. parent. project. form.MyCanvas. window. set_cursor( None) release_ x' function also in the clip class.
# reset the cursor
self.
in 'on_button_
Unintentionally the previous suggested fix also solves this bug, though I'm not sure if it really does solve it or simply hides it. Someone more familiar with the code would have to check.