From 0d1350ba7cc7cb2929bd24631c986b5970146958 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Thu, 19 Nov 2020 19:45:08 +0100 Subject: [PATCH] save --- src/librssguard/gui/dialogs/formmain.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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);