Fix compilation without systemd support
This commit is contained in:
parent
f7b38162dd
commit
218037a951
|
@ -15,8 +15,11 @@ namespace QtGui {
|
||||||
/*!
|
/*!
|
||||||
* \brief Returns whether to ignore inavailability after start or standby-wakeup.
|
* \brief Returns whether to ignore inavailability after start or standby-wakeup.
|
||||||
*/
|
*/
|
||||||
static bool ignoreInavailabilityAfterStart(
|
static bool ignoreInavailabilityAfterStart(const Settings::Settings &settings, const SyncthingLauncher *launcher,
|
||||||
const Settings::Settings &settings, const SyncthingLauncher *launcher, const SyncthingService *service, const QString &message, int networkError)
|
#ifdef LIB_SYNCTHING_CONNECTOR_SUPPORT_SYSTEMD
|
||||||
|
const SyncthingService *service,
|
||||||
|
#endif
|
||||||
|
const QString &message, int networkError)
|
||||||
{
|
{
|
||||||
if (!settings.ignoreInavailabilityAfterStart) {
|
if (!settings.ignoreInavailabilityAfterStart) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -97,6 +100,10 @@ bool InternalError::isRelevant(const SyncthingConnection &connection, SyncthingE
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return !ignoreInavailabilityAfterStart(settings, launcher, service, message, networkError);
|
return !ignoreInavailabilityAfterStart(settings, launcher,
|
||||||
|
#ifdef LIB_SYNCTHING_CONNECTOR_SUPPORT_SYSTEMD
|
||||||
|
service,
|
||||||
|
#endif
|
||||||
|
message, networkError);
|
||||||
}
|
}
|
||||||
} // namespace QtGui
|
} // namespace QtGui
|
||||||
|
|
Loading…
Reference in New Issue