Crash with new wishlist feature

Firstly, gotta say thanks for the wishlist feature. It's better than before and I was most happy to find those items i'd added to wishlist before it was enabled on the wishlist as soon as I'd used the new build - bloody marvellous!!

However, I did manage to get it to crash on first use (sorry!). It returned two searches for me and I clicked on one search item (using the button) and closed this using the button as well. However, the second result I navigated to using the tab in the search window and closed using the "x" on the tab. The button still showed to close the wishlist item and when I pressed it, it crashed.

Here's the bug report from DrMing

SoulseekQt.exe caused an Access Violation at location 6514b5a1 in module QtGui4.dll Reading from location 00000016.

Registers:
eax=11061bd8 ebx=11061bd8 ecx=762498da edx=0000000e esi=130fb7c0 edi=0b5bb670
eip=6514b5a1 esp=0022ceb8 ebp=0022ceb8 iopl=0 nv up ei pl nz na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00210206

Call stack:
6514B5A1 QtGui4.dll:6514B5A1 _ZNK7QWidget6windowEv
6518BAA6 QtGui4.dll:6518BAA6 _ZN7QWidget14activateWindowEv
004AC138 SoulseekQt.exe:004AC138 EventToolBar::OnActionTriggered qwidget.h:422
void EventToolBar::OnActionTriggered(
struct EventToolBar * this = &(indirect)
)
004E5330 SoulseekQt.exe:004E5330 EventToolBar::qt_metacall moc_EventToolBar.cpp:72
int32 EventToolBar::qt_metacall(
struct EventToolBar * this = },
bool m_empty = True
},
Call _c = InvokeMetaMethod,
int32 _id = 40,
void * * _a = &0x00000000
)
6A2C73F9 QtCore4.dll:6A2C73F9 _ZN11QMetaObject8activateEP7QObjectPKS_iPPv
651098AC QtGui4.dll:651098AC _ZN7QAction9triggeredEb
6510ADA4 QtGui4.dll:6510ADA4 _ZN7QAction8activateENS_11ActionEventE
6550A37E QtGui4.dll:6550A37E _ZN11QToolButton14nextCheckStateEv
654505A7 QtGui4.dll:654505A7 _ZN15QAbstractButton13keyPressEventEP9QKeyEvent
6545081B QtGui4.dll:6545081B _ZN15QAbstractButton17mouseReleaseEventEP11QMouseEvent
6550A634 QtGui4.dll:6550A634 _ZN11QToolButton17mouseReleaseEventEP11QMouseEvent
65159F40 QtGui4.dll:65159F40 _ZN7QWidget5eventEP6QEvent
6510FA38 QtGui4.dll:6510FA38 _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent
65118CB1 QtGui4.dll:65118CB1 _ZN12QApplication6notifyEP7QObjectP6QEvent
6A2B419C QtCore4.dll:6A2B419C _ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent
651135BB QtGui4.dll:651135BB _ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_Eb
651771AB QtGui4.dll:651771AB _ZN19QApplicationPrivate19translateTouchEventERK6tagMSG
6517A7F7 QtGui4.dll:6517A7F7 _ZN19QApplicationPrivate27initializeWidgetPaletteHashEv
7675C4E7 USER32.dll:7675C4E7 gapfnScSendMessage
7675C5E7 USER32.dll:7675C5E7 gapfnScSendMessage
7675CC19 USER32.dll:7675CC19 gapfnScSendMessage
7675CC70 USER32.dll:7675CC70 DispatchMessageW
6A2D9801 QtCore4.dll:6A2D9801 _ZN21QEventDispatcherWin3213processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE
65174B00 QtGui4.dll:65174B00 _ZN19QApplicationPrivate14enterModal_sysEP7QWidget
6A2B3072 QtCore4.dll:6A2B3072 _ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE
6A2B3403 QtCore4.dll:6A2B3403 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE
6A2B71AB QtCore4.dll:6A2B71AB _ZN16QCoreApplication4execEv
00401478 SoulseekQt.exe:00401478 qMain main.cpp:18
int32 qMain(
int32 argc = 1,
__builtin_va_list * argv = &0x01c908f1
)
004E6B85 SoulseekQt.exe:004E6B85 qrc_Resource.cpp:11658
004E6848 SoulseekQt.exe:004E6848 qrc_Resource.cpp:11658
0040124B SoulseekQt.exe:0040124B
004012B8 SoulseekQt.exe:004012B8
7685ED6C kernel32.dll:7685ED6C BaseThreadInitThunk
773537F5 ntdll.dll:773537F5 RtlInitializeExceptionChain
773537C8 ntdll.dll:773537C8 RtlInitializeExceptionChain

Oh crap, you're right! I forgot to clear the event button when the search results window comes into view manually. I'll have it fixed in tonight's build.

Thanks! Nir