Commit ea8aeee5 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add parent to menu

parent 15765961
......@@ -694,7 +694,7 @@ void LdapSearchDialog::slotCustomContextMenuRequested(const QPoint &pos)
{
const QModelIndex index = d->mResultView->indexAt(pos);
if (index.isValid()) {
QMenu menu;
QMenu menu(this);
QAction *act = menu.addAction(i18n("Copy"));
if (menu.exec(QCursor::pos()) == act) {
QClipboard *cb = QApplication::clipboard();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment