From 3183b980126cad04ca51bdf13ec23c4bd85e1703 Mon Sep 17 00:00:00 2001 From: Cedric Bellegarde Date: Tue, 27 Nov 2012 12:54:11 +0100 Subject: [PATCH] Fix appmenu button placement in style preview (Thanks to Hugo) --- libkdecorations/kcommondecoration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libkdecorations/kcommondecoration.cpp b/libkdecorations/kcommondecoration.cpp index 3bac5a55a2..f0a5a275e9 100644 --- a/libkdecorations/kcommondecoration.cpp +++ b/libkdecorations/kcommondecoration.cpp @@ -543,7 +543,7 @@ void KCommonDecoration::addButtons(ButtonContainer &btnContainer, const QString& btn->setLeft(isLeft); btn->setSize(QSize(layoutMetric(LM_ButtonWidth, true, btn), layoutMetric(LM_ButtonHeight, true, btn))); // will be shown later on window registration - if (btn->type() == AppMenuButton && !wrapper->menuAvailable()) { + if (btn->type() == AppMenuButton && !isPreview() && !wrapper->menuAvailable()) { btn->hide(); } else { btn->show();