MCPcopy Create free account
hub / github.com/Martchus/syncthingtray / handleSystemdServiceError

Function handleSystemdServiceError

tray/application/main.cpp:119–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117
118#ifdef LIB_SYNCTHING_CONNECTOR_SUPPORT_SYSTEMD
119static void handleSystemdServiceError(const QString &context, const QString &name, const QString &message)
120{
121 auto *const msgBox = new QMessageBox;
122 msgBox->setAttribute(Qt::WA_DeleteOnClose);
123 msgBox->setIcon(QMessageBox::Critical);
124 msgBox->setText(QCoreApplication::translate("main", "Unable to ") + context);
125 msgBox->setInformativeText(name % QStringLiteral(":\n") % message);
126 msgBox->show();
127}
128#endif
129
130// define public key and signature extension depending on verification backend

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected