Re: [Qtractor-devel] MIDI file import folder is getting collapsed after every D&D
An Audio/MIDI multi-track sequencer
Brought to you by:
rncbc
From: Frank N. <bea...@we...> - 2016-12-06 22:34:05
|
Hi Rui and all, > > It works better now, but - well, not perfect still. Folders are not > > collapsed any more after a D&D operation, but what is now awkward > > is what happens if you add e.g. Track 1 of a MIDI file to one > > Qtractor track, and attempt to just D&D Track 2 into another > > Qtractor track. This doesn't work because the previous track did > > not get unselected after the first D&D, so you are now attempting > > to D&D 2 tracks at the same time (kind of "multi-select" I guess). > > It can worked around by additional clicks to unselect everything, > > but that's trading one ugliness for another :-). > > > > That's perhaps the reason why you only commented that one line in > > the source code instead of removing it right away. I believe what > > should happen here instead of the "QTreeWidget::reset();" is > > something like "un-select all items in the widget" (no idea what > > that's called in Qt speech). > > > > no, not so easy. there's either some idiosyncrasy of QTreeWidget or > it's me being an idiot :) > > had to take measures and got into a hacky solution in 0.8.0.6git.b304c2 > beware! things might get worse now on some other front... > i count on you to find them ;) Aha! Yes, this is much better! And, since the same code is (I guess) used for both MIDI and audio files, it's fixed for both at the same time :-) (I remember having seen that issue before, and that was when creating&using groups of audio files). Thanks a lot, and "SELB++" if you know what I mean ;-), Frank |