]> sigrok.org Git - pulseview.git/blobdiff - pv/views/decoder_binary/view.cpp
Session: Fix issue #67 by improving error handling
[pulseview.git] / pv / views / decoder_binary / view.cpp
index 1e40bd1b686c315ce3f5a196b96c351b027c4cf7..6e61fa3aa1aa8bf688273ca5e8872c131435996a 100644 (file)
@@ -110,7 +110,11 @@ View::View(Session &session, bool is_main_view, QMainWindow *parent) :
        save_action_->setText(tr("&Save..."));
        save_action_->setIcon(QIcon::fromTheme("document-save-as",
                QIcon(":/icons/document-save-as.png")));
+#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
+       save_action_->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_S));
+#else
        save_action_->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_S));
+#endif
        connect(save_action_, SIGNAL(triggered(bool)),
                this, SLOT(on_actionSave_triggered()));