Skip to content

Commit

Permalink
Hide CRS group box in vector properties for non-spatial layers
Browse files Browse the repository at this point in the history
Fixes #19689
  • Loading branch information
nyalldawson committed Aug 27, 2018
1 parent 7c805b4 commit 5ba52e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/app/qgsvectorlayerproperties.cpp
Expand Up @@ -175,6 +175,8 @@ QgsVectorLayerProperties::QgsVectorLayerProperties(
{
labelingDialog = nullptr;
mOptsPage_Labels->setEnabled( false ); // disable labeling item
mGeometryGroupBox->setEnabled( false );
mGeometryGroupBox->setVisible( false );
}

// Create the Actions dialog tab
Expand Down
6 changes: 3 additions & 3 deletions src/ui/qgsvectorlayerpropertiesbase.ui
Expand Up @@ -357,7 +357,7 @@
</sizepolicy>
</property>
<property name="currentIndex">
<number>18</number>
<number>1</number>
</property>
<widget class="QWidget" name="mOptsPage_Information">
<layout class="QVBoxLayout" name="verticalLayout_5">
Expand Down Expand Up @@ -550,7 +550,7 @@ border-radius: 2px;</string>
</widget>
</item>
<item>
<widget class="QgsCollapsibleGroupBox" name="indexGroupBox_2">
<widget class="QgsCollapsibleGroupBox" name="mGeometryGroupBox">
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
Expand Down Expand Up @@ -2543,7 +2543,7 @@ border-radius: 2px;</string>
<tabstop>mLayerOrigNameLineEdit</tabstop>
<tabstop>txtDisplayName</tabstop>
<tabstop>cboProviderEncoding</tabstop>
<tabstop>indexGroupBox_2</tabstop>
<tabstop>mGeometryGroupBox</tabstop>
<tabstop>mCrsSelector</tabstop>
<tabstop>pbnIndex</tabstop>
<tabstop>pbnUpdateExtents</tabstop>
Expand Down

0 comments on commit 5ba52e3

Please sign in to comment.