aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qmmp.pri1
-rw-r--r--src/plugins/General/General.pro7
-rw-r--r--src/plugins/General/sleepinhibitor/sleepinhibitorfactory.cpp1
3 files changed, 6 insertions, 3 deletions
diff --git a/qmmp.pri b/qmmp.pri
index 96f2cccc0..b86d007d8 100644
--- a/qmmp.pri
+++ b/qmmp.pri
@@ -86,6 +86,7 @@ CONFIG += SID_PLUGIN
CONFIG += QTMULTIMEDIA_PLUGIN
CONFIG += SHOUT_PLUGIN
CONFIG += HISTORY_PLUGIN
+CONFIG += SLEEP_INHIBITOR_PLUGIN
#additional features
diff --git a/src/plugins/General/General.pro b/src/plugins/General/General.pro
index 1f4290b30..9a9e2af14 100644
--- a/src/plugins/General/General.pro
+++ b/src/plugins/General/General.pro
@@ -16,8 +16,7 @@ SUBDIRS += statusicon \
unix:SUBDIRS += mpris \
kdenotify \
converter \
- gnomehotkey \
- sleepinhibitor
+ gnomehotkey
contains(CONFIG, UDISKS2_PLUGIN){
unix:SUBDIRS += udisks2
@@ -27,6 +26,10 @@ contains(CONFIG, HAL_PLUGIN){
unix:SUBDIRS += hal
}
+contains(CONFIG, SLEEP_INHIBITOR_PLUGIN){
+ unix:SUBDIRS += sleepinhibitor
+}
+
contains(CONFIG, HISTORY_PLUGIN){
SUBDIRS += history
}
diff --git a/src/plugins/General/sleepinhibitor/sleepinhibitorfactory.cpp b/src/plugins/General/sleepinhibitor/sleepinhibitorfactory.cpp
index 2b7d3b707..c01b0ef85 100644
--- a/src/plugins/General/sleepinhibitor/sleepinhibitorfactory.cpp
+++ b/src/plugins/General/sleepinhibitor/sleepinhibitorfactory.cpp
@@ -18,7 +18,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-
#include <QMessageBox>
#include "sleepinhibitor.h"
#include "sleepinhibitorfactory.h"