Commit 87800837 authored by David Edmundson's avatar David Edmundson
Browse files

Fix build

parent 683b6688
......@@ -69,7 +69,7 @@ int ClockHelper::ntp( const QStringList& ntpServers, bool ntpEnabled )
config.writeEntry("enabled", ntpEnabled );
QString ntpUtility = QStandardPaths::findExecutable("ntpdate");
if (!ntpUtility) {
if (ntpUtility.isEmpty()) {
ntpUtility = QStandardPaths::findExecutable("rdate");
......@@ -42,8 +42,7 @@ class ClockHelper : public QObject
ActionReply save(const QVariantMap &map);
int ntp(const QStringList& ntpServers, bool ntpEnabled,
const QString& ntpUtility);
int ntp(const QStringList& ntpServers, bool ntpEnabled);
int date(const QString& newdate, const QString& olddate);
int tz(const QString& selectedzone);
int tzreset();
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