1
0
Fork 0

GUI: no more copy beep + fixed some doubleclick events

This commit is contained in:
Mr. eXoDia 2014-07-30 15:49:55 +02:00
parent 850ad8a1fe
commit 99bfd47bce
4 changed files with 6 additions and 5 deletions

View File

@ -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();
}

View File

@ -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

View File

@ -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;

View File

@ -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;