X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fwidgets%2Fwellarray.cpp;h=fb674431c0e6a054613707ddbf33ff142541e5bc;hb=2b334bb4078d6e74e8ed4e3460c6596344dd9c8d;hp=a5979db7183d79696a659483157beb1a84076705;hpb=7cc05d0295b41755e38ecad57860582ea9c13e86;p=pulseview.git diff --git a/pv/widgets/wellarray.cpp b/pv/widgets/wellarray.cpp index a5979db7..fb674431 100644 --- a/pv/widgets/wellarray.cpp +++ b/pv/widgets/wellarray.cpp @@ -39,8 +39,6 @@ ** ****************************************************************************/ -#define QT_NO_MENU - #include #include #include @@ -219,12 +217,7 @@ void QWellArray::setSelected(int row, int col) updateCell(oldRow, oldCol); updateCell(selRow, selCol); if (row >= 0) - emit selected(row, col); - -#ifndef QT_NO_MENU - if (isVisible() && qobject_cast(parentWidget())) - parentWidget()->close(); -#endif + Q_EMIT selected(row, col); } void QWellArray::focusInEvent(QFocusEvent*)