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