Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Fix "Docker box" to be actually a button

Dmitry Kazakov4224d5a88ed0
diff --git a/libs/ui/kis_control_frame.cpp b/libs/ui/kis_control_frame.cpp
index 7d0ea9738d..783f5f1909 100644
--- a/libs/ui/kis_control_frame.cpp
+++ b/libs/ui/kis_control_frame.cpp
@@ -198,11 +198,6 @@ void KisControlFrame::setup(QWidget *parent)
createDockerBox(m_viewManager);
-
- action = new QWidgetAction(this);
- action->setText(i18n("&Docker Box"));
- m_viewManager->actionCollection()->addAction("dockerBox", action);
- action->setDefaultWidget(m_dockerPopupButton);
}
void KisControlFrame::slotUpdateDisplayRenderer(KoDualColorButton* colourSelector)
@@ -374,4 +369,6 @@ void KisControlFrame::createDockerBox(KisViewManager * view)
view->actionCollection()->addAction("docker_box", action);
connect(action, SIGNAL(triggered()), m_dockerPopupButton, SLOT(showPopupWidget()));
m_dockerPopup->addAction(action);
+
+ action->setDefaultWidget(m_dockerPopupButton);
}