X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Ftoolbars%2Fmainbar.cpp;h=4f5cd158ed0922c2842a5349697ab25c0cec6030;hp=a3b722cc3dcfa041f6bc913c451d6f4e4fec8410;hb=d375140b2e760226ff5f0d8aafc0386c0010644b;hpb=4d8130bb039a3e2096d6c0f8650e027340722ead diff --git a/pv/toolbars/mainbar.cpp b/pv/toolbars/mainbar.cpp index a3b722cc..4f5cd158 100644 --- a/pv/toolbars/mainbar.cpp +++ b/pv/toolbars/mainbar.cpp @@ -114,6 +114,8 @@ MainBar::MainBar(Session &session, QWidget *parent, { setObjectName(QString::fromUtf8("MainBar")); + setContextMenuPolicy(Qt::PreventContextMenu); + // Actions action_new_view_->setText(tr("New &View")); action_new_view_->setIcon(QIcon::fromTheme("window-new", @@ -599,7 +601,7 @@ void MainBar::export_file(shared_ptr format, bool selection_only) if (!trace_view->cursors()->enabled()) { show_session_error(tr("Missing Cursors"), tr("You need to set the " \ "cursors before you can save the data enclosed by them " \ - "to a session file (e.g. using ALT-V - Show Cursors).")); + "to a session file (e.g. using the Show Cursors button).")); return; }