aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/service.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c
index 7f90c9c..d8fc961 100644
--- a/src/service.c
+++ b/src/service.c
@@ -539,7 +539,9 @@ create_session_section (IndicatorSessionService * self)
if (indicator_session_actions_can_hibernate (p->backend_actions))
g_menu_append (menu, _("Hibernate"), "indicator.hibernate");
- if (!g_settings_get_boolean (s, "suppress-restart-menuitem"))
+ /* NB: check 'ellipsis' here to skip this item if prompting is enabled
+ because this shows the same prompt as 'Shut Down' in Unity */
+ if (!ellipsis && !g_settings_get_boolean (s, "suppress-restart-menuitem"))
{
const char * label = ellipsis ? _("Restart\342\200\246") : _("Restart");
g_menu_append (menu, label, "indicator.reboot");