Commit b97cef85 authored by Wolthera van Hövell's avatar Wolthera van Hövell 🛍

Allow the modal dialog to have ok/cancel buttons as well.

According to boud, some desktop enviroments have no close button on dialogs.

Ref T2438
parent 960bde48
...@@ -56,9 +56,6 @@ KisInternalColorSelector::KisInternalColorSelector(QWidget *parent, KoColor colo ...@@ -56,9 +56,6 @@ KisInternalColorSelector::KisInternalColorSelector(QWidget *parent, KoColor colo
this->setFocusPolicy(Qt::ClickFocus); this->setFocusPolicy(Qt::ClickFocus);
m_ui = new Ui_WdgDlgInternalColorSelector(); m_ui = new Ui_WdgDlgInternalColorSelector();
m_ui->setupUi(this); m_ui->setupUi(this);
if (!modal) {
m_ui->buttonBox->hide();
}
setWindowTitle(caption); setWindowTitle(caption);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment