GUI: early return
This commit is contained in:
parent
5236bfd845
commit
be67b75035
|
@ -461,8 +461,10 @@ void ResultsView::logCopyComplete()
|
|||
|
||||
void ResultsView::on_mListLog_customContextMenuRequested(const QPoint &pos)
|
||||
{
|
||||
if (mUI.mListLog->count() > 0) {
|
||||
QPoint globalPos = mUI.mListLog->mapToGlobal(pos);
|
||||
if (mUI.mListLog->count() <= 0)
|
||||
return;
|
||||
|
||||
const QPoint globalPos = mUI.mListLog->mapToGlobal(pos);
|
||||
|
||||
QMenu contextMenu;
|
||||
contextMenu.addAction(tr("Clear Log"), this, SLOT(logClear()));
|
||||
|
@ -471,4 +473,3 @@ void ResultsView::on_mListLog_customContextMenuRequested(const QPoint &pos)
|
|||
|
||||
contextMenu.exec(globalPos);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue