diff --git a/src/ui/widgets/search_edit.cpp b/src/ui/widgets/search_edit.cpp index b3ca16d9..df4687cf 100644 --- a/src/ui/widgets/search_edit.cpp +++ b/src/ui/widgets/search_edit.cpp @@ -22,7 +22,10 @@ namespace dstore { SearchEdit::SearchEdit(QWidget* parent) : DSearchEdit(parent) { - + auto edit = this->findChild("Edit"); + if (edit) { + edit->setContextMenuPolicy(Qt::NoContextMenu); + } } SearchEdit::~SearchEdit() { @@ -51,4 +54,4 @@ void SearchEdit::keyPressEvent(QKeyEvent* event) { DSearchEdit::keyPressEvent(event); } -} // namespace dstore \ No newline at end of file +} // namespace dstore