aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2020-09-03 19:24:58 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-09-04 21:21:41 +0200
commitd6a07daf4ca8c7b16ae332eb8ecc2de93bf4eb46 (patch)
treea4662131f5f0de714b654dc547e30d6238f1e878
parent527bbe441c788bae626637d7c75b0603d08eceb4 (diff)
downloadayatana-indicator-power-d6a07daf4ca8c7b16ae332eb8ecc2de93bf4eb46.tar.gz
ayatana-indicator-power-d6a07daf4ca8c7b16ae332eb8ecc2de93bf4eb46.tar.bz2
ayatana-indicator-power-d6a07daf4ca8c7b16ae332eb8ecc2de93bf4eb46.zip
Do not call the power settings handler if the command is unknown
Fixes AyatanaIndicators/ayatana-indicator-power#12.
-rw-r--r--src/utils.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c
index 17e3a9c..96a9b1b 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -134,7 +134,10 @@ utils_handle_settings_request (void)
}
}
- execute_command (control_center_cmd);
+ if (control_center_cmd)
+ {
+ execute_command(control_center_cmd);
+ }
}
gboolean