From 8ce03bb2a574fd8a41a537f279968b66ecf03f94 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sat, 19 Sep 2015 08:37:13 +0200 Subject: [PATCH] GUI: chapter editor: update menu entries when they're about to be shown --- src/mkvtoolnix-gui/chapter_editor/tool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mkvtoolnix-gui/chapter_editor/tool.cpp b/src/mkvtoolnix-gui/chapter_editor/tool.cpp index 7c70e8b5b..02bff4caf 100644 --- a/src/mkvtoolnix-gui/chapter_editor/tool.cpp +++ b/src/mkvtoolnix-gui/chapter_editor/tool.cpp @@ -64,7 +64,7 @@ Tool::setupActions() { connect(ui->newFileButton, &QPushButton::clicked, this, &Tool::newFile); connect(ui->openFileButton, &QPushButton::clicked, this, &Tool::selectFileToOpen); - connect(ui->editors, &QTabWidget::currentChanged, this, &Tool::enableMenuActions); + connect(m_chapterEditorMenu, &QMenu::aboutToShow, this, &Tool::enableMenuActions); connect(mw, &MainWindow::preferencesChanged, this, &Tool::setupTabPositions); connect(mw, &MainWindow::preferencesChanged, this, &Tool::retranslateUi);