diff --git a/src/apps/deskbar/DeskbarMenu.cpp b/src/apps/deskbar/DeskbarMenu.cpp index 9dd5ba7ac7..1381089378 100644 --- a/src/apps/deskbar/DeskbarMenu.cpp +++ b/src/apps/deskbar/DeskbarMenu.cpp @@ -294,6 +294,11 @@ B_TRANSLATE_MARK_VOID("About this system") BMenu* shutdownMenu = new BMenu(B_TRANSLATE("Shutdown" B_UTF8_ELLIPSIS)); + item = new BMenuItem(B_TRANSLATE("Power off"), + new BMessage(kShutdownSystem)); + item->SetEnabled(!dragging); + shutdownMenu->AddItem(item); + item = new BMenuItem(B_TRANSLATE("Restart system"), new BMessage(kRebootSystem)); item->SetEnabled(!dragging); @@ -310,13 +315,9 @@ B_TRANSLATE_MARK_VOID("About this system") } #endif - item = new BMenuItem(B_TRANSLATE("Power off"), - new BMessage(kShutdownSystem)); - item->SetEnabled(!dragging); - shutdownMenu->AddItem(item); shutdownMenu->SetFont(be_plain_font); - shutdownMenu->SetTargetForItems(be_app); + BMessage* message = new BMessage(kShutdownSystem); message->AddBool("confirm", true); AddItem(new BMenuItem(shutdownMenu, message));