Fix compilation

parent d43328bf
......@@ -418,13 +418,13 @@ void MainWindow::init()
QAction *showMixer = new QAction(QIcon::fromTheme(QStringLiteral("view-media-equalizer")), i18n("Audio Mixer"), this);
showMixer->setCheckable(true);
addAction(QStringLiteral("audiomixer_button"), showMixer);
connect(mixerDock, &QDockWidget::visibilityChanged, [&, showMixer](bool visible) {
connect(m_mixerDock, &QDockWidget::visibilityChanged, [&, showMixer](bool visible) {
pCore->mixer()->connectMixer(visible);
showMixer->setChecked(visible);
});
connect(showMixer, &QAction::triggered, [&, mixerDock]() {
if (mixerDock->isVisible() && !mixerDock->visibleRegion().isEmpty()) {
mixerDock->close();
connect(showMixer, &QAction::triggered, [&]() {
if (m_mixerDock->isVisible() && !m_mixerDock->visibleRegion().isEmpty()) {
m_mixerDock->close();
} else {
m_mixerDock->show();
m_mixerDock->raise();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment