diff --git a/ftrace.cpp b/ftrace.cpp index 3bf7f35625..e8614440a9 100644 --- a/ftrace.cpp +++ b/ftrace.cpp @@ -33,7 +33,7 @@ FTraceLogger::FTraceLogger(QObject *parent) } } -bool FTraceLogger::isEnabled() +bool FTraceLogger::isEnabled() const { return m_file.isOpen(); } diff --git a/ftrace.h b/ftrace.h index 4d2c431ed1..9ff0cbf6b4 100644 --- a/ftrace.h +++ b/ftrace.h @@ -37,7 +37,7 @@ public: /** * Enabled through DBus and logging has started */ - bool isEnabled(); + bool isEnabled() const; /** * Main log function