GUI: chapter editor: update menu entries when they're about to be shown

This commit is contained in:
Moritz Bunkus 2015-09-19 08:37:13 +02:00
parent c46591157e
commit 8ce03bb2a5

View File

@ -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);