diff --git a/src/mkvtoolnix-gui/mkvtoolnix_gui.cpp b/src/mkvtoolnix-gui/mkvtoolnix_gui.cpp index e73fa916c..055c0e4ff 100644 --- a/src/mkvtoolnix-gui/mkvtoolnix_gui.cpp +++ b/src/mkvtoolnix-gui/mkvtoolnix_gui.cpp @@ -3,6 +3,7 @@ #include #include +#include "common/fs_sys_helpers.h" #include "mkvtoolnix-gui/app.h" #include "mkvtoolnix-gui/job_widget/job.h" #include "mkvtoolnix-gui/mkvtoolnix_gui.h" @@ -18,6 +19,9 @@ registerMetaTypes() { static void showPreviewWarning(QWidget *parent) { + if (get_environment_variable("NO_WARNING") == "1") + return; + auto dlg = std::unique_ptr(new PreviewWarningDialog{parent}); dlg->exec(); }