Skip to content

Commit

Permalink
Display mesh information only when initialization is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
DelazJ authored and nyalldawson committed Aug 30, 2021
1 parent 1906e19 commit be7926e
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions src/app/mesh/qgsnewmeshlayerdialog.cpp
Expand Up @@ -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()
Expand Down

0 comments on commit be7926e

Please sign in to comment.