GUI: no more copy beep + fixed some doubleclick events
This commit is contained in:
parent
850ad8a1fe
commit
99bfd47bce
|
@ -32,10 +32,7 @@ void Bridge::CopyToClipboard(const char* text)
|
|||
|
||||
OpenClipboard(0);
|
||||
EmptyClipboard();
|
||||
if(!SetClipboardData(CF_OEMTEXT, hText))
|
||||
MessageBeep(MB_ICONERROR);
|
||||
else
|
||||
MessageBeep(MB_ICONINFORMATION);
|
||||
SetClipboardData(CF_OEMTEXT, hText);
|
||||
CloseClipboard();
|
||||
}
|
||||
|
||||
|
|
|
@ -38,6 +38,8 @@ void CPUDisassembly::mousePressEvent(QMouseEvent* event)
|
|||
|
||||
void CPUDisassembly::mouseDoubleClickEvent(QMouseEvent* event)
|
||||
{
|
||||
if(event->button() != Qt::LeftButton)
|
||||
return;
|
||||
switch(getColumnIndexFromX(event->x()))
|
||||
{
|
||||
case 0: //address
|
||||
|
|
|
@ -305,7 +305,7 @@ void RegistersView::mousePressEvent(QMouseEvent* event)
|
|||
void RegistersView::mouseDoubleClickEvent(QMouseEvent* event)
|
||||
{
|
||||
Q_UNUSED(event);
|
||||
if(!DbgIsDebugging())
|
||||
if(!DbgIsDebugging() || event->button() != Qt::LeftButton)
|
||||
return;
|
||||
// get mouse position
|
||||
const int y = (event->y()-3)/(double)mRowHeight;
|
||||
|
|
|
@ -292,6 +292,8 @@ void ScriptView::contextMenuSlot(const QPoint &pos)
|
|||
|
||||
void ScriptView::mouseDoubleClickEvent(QMouseEvent* event)
|
||||
{
|
||||
if(event->button() != Qt::LeftButton)
|
||||
return;
|
||||
Q_UNUSED(event);
|
||||
if(!getRowCount())
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue