diff --git a/src/librssguard/gui/dialogs/formmain.cpp b/src/librssguard/gui/dialogs/formmain.cpp index 9a67497a5..93da546e9 100755 --- a/src/librssguard/gui/dialogs/formmain.cpp +++ b/src/librssguard/gui/dialogs/formmain.cpp @@ -659,6 +659,9 @@ void FormMain::createConnections() { connect(m_ui->m_actionSwitchMainMenu, &QAction::toggled, m_ui->m_menuBar, &QMenuBar::setVisible); connect(m_ui->m_actionSwitchMainWindow, &QAction::triggered, this, &FormMain::switchVisibility); connect(m_ui->m_actionSwitchStatusBar, &QAction::toggled, statusBar(), &StatusBar::setVisible); + connect(m_ui->m_actionMessagePreviewEnabled, &QAction::toggled, this, [](bool enabled) { + qApp->settings()->setValue(GROUP(Messages), Messages::EnableMessagePreview, enabled); + }); // Menu "Tools" connections. connect(m_ui->m_actionSettings, &QAction::triggered, this, [this]() { @@ -678,10 +681,6 @@ void FormMain::createConnections() { connect(m_ui->m_actionDonate, &QAction::triggered, this, &FormMain::donate); connect(m_ui->m_actionDisplayDocs, &QAction::triggered, this, &FormMain::showDocs); - connect(m_ui->m_actionMessagePreviewEnabled, &QAction::toggled, this, [](bool enabled) { - qApp->settings()->setValue(GROUP(Messages), Messages::EnableMessagePreview, enabled); - }); - // Tab widget connections. connect(m_ui->m_actionTabsNext, &QAction::triggered, m_ui->m_tabWidget, &TabWidget::gotoNextTab); connect(m_ui->m_actionTabsPrevious, &QAction::triggered, m_ui->m_tabWidget, &TabWidget::gotoPreviousTab);