Create clip disabled after creating track in new instance of qtractor
An Audio/MIDI multi-track sequencer
Status: Beta
Brought to you by:
rncbc
Cannot create clip after creating track in new instance of qtractor. With latest SVN (3970) built from source:
After a few random in the actions, "New clip" usually becomes enabled and can be used, but I haven't discovered a pattern behind it.
hi,
Clip/New... should be always enabled as long there is a highlighted current track.
so, are you sure that you're doing it right making the new track as current and highlighted when you clicking on it? here it gets automatically made current and highlighted as soon it's created, right after clicking OK on the Track/Add track... dialog.
however, clicking on an empty space in the track views will drop the current/highlighted track and there yes, Clip/New... gets disabled.
hth.
byee
I've tried clicking all over the place after "Add Track". Also I've tried not clicking at all. I've also tried creating multiple tracks and highlighting one after the other. Same behavior, I can't get "New clip" to enable sometimes.
Maybe it's a qt issue?
I'm building with --enable-qt4, Qt version "4:4.8.5+git192-g085f851+dfsg-2ubuntu4".
might be a WM issue perhaps? for instance, is focus following mouse pointer?
aren't tracks actually highlighted when you click on them? and while you see it currently highlighted, isn't the Clip/New... menu item or button enabled anyway? a screenshot for evidence please?
i can't tell for sure, i really don't get that behavior here. sorry.
Last edit: Rui Nuno Capela 2014-08-20
Ugh, I think it is a WM issue too. Ubuntu takes over the menu to put it at the top of the screen (with the "appmenu" plugin). Probably this slightly changes functionality... I'll try to confirm this later.
OK, I found out the root cause.
The
updateClipMenu
slot is supposed to be executed when the "Clip" menu is about to show.However this doesn't happen.
When I disable the appmenu (by defining APPMENU_DISPLAY_BOTH=1) it works fine. So it is some interaction with Ubuntu's app menu.
There are also some ominous warnings at startup pointing in this direction:
So it appears that Ubuntu has a problem with an action occuring in a menu multiple times. And indeed, removing the reference to clipMenu and trackMenu in the edit menu fixes it:
Last edit: Wladimir van der Laan 2014-08-20