Skip to content
Permalink
Browse files
Display mesh information only when initialization is enabled
  • Loading branch information
DelazJ authored and nyalldawson committed Aug 30, 2021
1 parent 1906e19 commit be7926e57d50c4f43abda6f34cea7dadf53cc776
Showing with 13 additions and 10 deletions.
  1. +13 −10 src/app/mesh/qgsnewmeshlayerdialog.cpp
@@ -196,19 +196,22 @@ void QgsNewMeshLayerDialog::updateSourceMeshInformation()

mInformationTextBrowser->clear();
mInformationTextBrowser->document()->setDefaultStyleSheet( myStyle );
if ( mMeshProjectRadioButton->isChecked() )
if ( mInitializeMeshGroupBox->isChecked() )
{
if ( mMeshProjectComboBox->currentLayer() )
mInformationTextBrowser->setHtml( mMeshProjectComboBox->currentLayer()->htmlMetadata() );
}
if ( mMeshProjectRadioButton->isChecked() )
{
if ( mMeshProjectComboBox->currentLayer() )
mInformationTextBrowser->setHtml( mMeshProjectComboBox->currentLayer()->htmlMetadata() );
}

if ( mMeshFileRadioButton->isChecked() )
{
if ( mSourceMeshFromFile )
mInformationTextBrowser->setHtml( mSourceMeshFromFile->htmlMetadata() );
}
if ( mMeshFileRadioButton->isChecked() )
{
if ( mSourceMeshFromFile )
mInformationTextBrowser->setHtml( mSourceMeshFromFile->htmlMetadata() );
}

mInformationTextBrowser->setOpenLinks( false );
mInformationTextBrowser->setOpenLinks( false );
}
};

bool QgsNewMeshLayerDialog::apply()

0 comments on commit be7926e

Please sign in to comment.