Fix build?

This commit is contained in:
Martin Rotter 2017-09-05 06:41:21 +02:00
parent 070bb7a389
commit 1ff2d4f434
2 changed files with 8 additions and 6 deletions

View File

@ -71,7 +71,7 @@ SystemFactory::AutoStartStatus SystemFactory::autoStartStatus() const {
// No correct path was found.
if (desktop_file_location.isEmpty()) {
qWarning("Searching for auto-start function status failed. HOME variable not found.");
return SystemFactory::Unavailable;
return AutoStartStatus::Unavailable;
}
// We found correct path, now check if file exists and return correct status.
@ -79,15 +79,15 @@ SystemFactory::AutoStartStatus SystemFactory::autoStartStatus() const {
// File exists, we must read it and check if "Hidden" attribute is defined and what is its value.
QSettings desktop_settings(desktop_file_location, QSettings::IniFormat);
bool hidden_value = desktop_settings.value(QSL("Desktop Entry/Hidden"), false).toBool();
return hidden_value ? SystemFactory::Disabled : SystemFactory::Enabled;
return hidden_value ? AutoStartStatus::Disabled : AutoStartStatus::Enabled;
}
else {
return SystemFactory::Disabled;
return AutoStartStatus::Disabled;
}
#else
// Disable auto-start functionality on unsupported platforms.
return SystemFactory::Unavailable;
return AutoStartStatus::Unavailable;
#endif
}

View File

@ -19,6 +19,8 @@
#include "exceptions/applicationexception.h"
#include <QDebug>
FeedParser::FeedParser(const QString& data) : m_xmlData(data) {
m_xml.setContent(m_xmlData, true);
@ -47,8 +49,8 @@ QList<Message> FeedParser::messages() {
messages.append(new_message);
}
catch (const ApplicationException& ex) {
qDebug(qPrintable(ex.message()));
}
qDebug() << ex.message();
}
}
return messages;