mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 22:12:58 +02:00
Bug 803 - Incorrect pointer (cursor) when rearranging tracks
There is no wxCURSOR_REARRANGE so made a custom cursor instead.
This commit is contained in:
@@ -150,7 +150,9 @@ HitTestPreview TrackSelectHandle::Preview
|
||||
if (mClicked) {
|
||||
static auto disabledCursor =
|
||||
::MakeCursor(wxCURSOR_NO_ENTRY, DisabledCursorXpm, 16, 16);
|
||||
static wxCursor rearrangeCursor{ wxCURSOR_HAND };
|
||||
//static wxCursor rearrangeCursor{ wxCURSOR_HAND };
|
||||
static auto rearrangeCursor =
|
||||
::MakeCursor(wxCURSOR_HAND, RearrangeCursorXpm, 16, 16);
|
||||
|
||||
const bool unsafe =
|
||||
ProjectAudioIO::Get( *GetActiveProject() ).IsAudioActive();
|
||||
@@ -158,7 +160,7 @@ HitTestPreview TrackSelectHandle::Preview
|
||||
message,
|
||||
(unsafe
|
||||
? &*disabledCursor
|
||||
: &rearrangeCursor)
|
||||
: &*rearrangeCursor)
|
||||
// , message // Stop showing the tooltip after the click
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user