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

Remove HDR tab when HDR is not present.

This will remove the whole tab instead of just the settings group.
As HDR cannot be magically added in the middle of a session, this
should work appropriately.

BUG:412306
parent 1a24947c
......@@ -1238,6 +1238,7 @@ DisplaySettingsTab::DisplaySettingsTab(QWidget *parent, const char *name)
#ifndef HAVE_HDR
grpHDRSettings->setVisible(false);
tabWidget->removeTab(tabWidget->indexOf(tabHDR));
#endif
const QStringList openglWarnings = KisOpenGL::getOpenGLWarnings();
......
......@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>617</width>
<height>373</height>
<width>651</width>
<height>422</height>
</rect>
</property>
<property name="sizePolicy">
......@@ -203,7 +203,7 @@
</item>
</layout>
</widget>
<widget class="QWidget" name="tab_2">
<widget class="QWidget" name="tabHDR">
<attribute name="title">
<string>HDR Settings</string>
</attribute>
......
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