]> sigrok.org Git - pulseview.git/blobdiff - pv/toolbars/mainbar.cpp
Disable context menus that could lead to users removing UI parts
[pulseview.git] / pv / toolbars / mainbar.cpp
index a3b722cc3dcfa041f6bc913c451d6f4e4fec8410..4f5cd158ed0922c2842a5349697ab25c0cec6030 100644 (file)
@@ -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<OutputFormat> 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;
                }