Commit d78d1558 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

GIT_SILENT: coding style

parent bf081dae
......@@ -883,14 +883,16 @@ AppearancePageGeneralTab::AppearancePageGeneralTab(QWidget *parent)
// Dependencies between the two checkboxes
connect(mStartInTrayCheck, &QCheckBox::stateChanged, this, [this](int state) {
if (state == Qt::Checked)
mSystemTrayCheck->setCheckState(Qt::Checked);
slotEmitChanged();
if (state == Qt::Checked) {
mSystemTrayCheck->setCheckState(Qt::Checked);
}
slotEmitChanged();
});
connect(mSystemTrayCheck, &QCheckBox::stateChanged, this, [this](int state) {
if(state == Qt::Unchecked)
mStartInTrayCheck->setCheckState(Qt::Unchecked);
slotEmitChanged();
if (state == Qt::Unchecked) {
mStartInTrayCheck->setCheckState(Qt::Unchecked);
}
slotEmitChanged();
});
// "Enable system tray applet" check box
......
......@@ -372,7 +372,7 @@ bool KMKernel::handleCommandLine(bool noArgsOpensReader, const QStringList &args
checkMail = true;
}
if(parser.isSet(QStringLiteral("startintray"))) {
if (parser.isSet(QStringLiteral("startintray"))) {
KMailSettings::self()->setSystemTrayEnabled(true);
startInTray = true;
}
......@@ -552,8 +552,9 @@ void KMKernel::openReader(bool onlyCheck, bool startInTray)
}
} else {
KMMainWin *win = new KMMainWin;
if(!startInTray && !KMailSettings::self()->startInTray())
if (!startInTray && !KMailSettings::self()->startInTray()) {
win->show();
}
activate = false; // new window: no explicit activation (#73591)
}
}
......
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