-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
don't allow dragging TCOs in BBEditor #3832
Conversation
For better modularity: Can you try implementing the fix in the affected subclass ( |
I was under the impression |
Didn't know about |
Sometimes it's easier than imagined. 🙄 |
src/core/Track.cpp
Outdated
|
||
BBTrackContainer * isbbEditor = dynamic_cast<BBTrackContainer*>( getTrackContentObject()->getTrack()->trackContainer() ); | ||
if( !isbbEditor && me->button() == Qt::LeftButton ) | ||
if( me->button() == Qt::LeftButton && fixedTCOs() == false ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could just to !FixedTCOs()
since it's a boolean
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to be consist with the rest of the code. But if there are no objections I do it for the whole If statement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!FixedTCOs()
makes more sense to me because I literally read it "If it's not a Fixed TCO"
Just tested this out, works well, fixes the bug 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still works perfectly 👌
* don't allow dragging TCOs in BBEditor * change bbtrack detecting * code improvements
fixes #3822