Fix build?
This commit is contained in:
parent
070bb7a389
commit
1ff2d4f434
2 changed files with 8 additions and 6 deletions
|
@ -71,7 +71,7 @@ SystemFactory::AutoStartStatus SystemFactory::autoStartStatus() const {
|
||||||
// No correct path was found.
|
// No correct path was found.
|
||||||
if (desktop_file_location.isEmpty()) {
|
if (desktop_file_location.isEmpty()) {
|
||||||
qWarning("Searching for auto-start function status failed. HOME variable not found.");
|
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.
|
// 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.
|
// 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);
|
QSettings desktop_settings(desktop_file_location, QSettings::IniFormat);
|
||||||
bool hidden_value = desktop_settings.value(QSL("Desktop Entry/Hidden"), false).toBool();
|
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 {
|
else {
|
||||||
return SystemFactory::Disabled;
|
return AutoStartStatus::Disabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
// Disable auto-start functionality on unsupported platforms.
|
// Disable auto-start functionality on unsupported platforms.
|
||||||
return SystemFactory::Unavailable;
|
return AutoStartStatus::Unavailable;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
|
|
||||||
#include "exceptions/applicationexception.h"
|
#include "exceptions/applicationexception.h"
|
||||||
|
|
||||||
|
#include <QDebug>
|
||||||
|
|
||||||
|
|
||||||
FeedParser::FeedParser(const QString& data) : m_xmlData(data) {
|
FeedParser::FeedParser(const QString& data) : m_xmlData(data) {
|
||||||
m_xml.setContent(m_xmlData, true);
|
m_xml.setContent(m_xmlData, true);
|
||||||
|
@ -47,8 +49,8 @@ QList<Message> FeedParser::messages() {
|
||||||
messages.append(new_message);
|
messages.append(new_message);
|
||||||
}
|
}
|
||||||
catch (const ApplicationException& ex) {
|
catch (const ApplicationException& ex) {
|
||||||
qDebug(qPrintable(ex.message()));
|
qDebug() << ex.message();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return messages;
|
return messages;
|
||||||
|
|
Loading…
Add table
Reference in a new issue