Skip to content

Commit

Permalink
UI improvements when GeoPDF export not available
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 19, 2019
1 parent f5b90f5 commit ff3e421
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/qgsmapsavedialog.cpp
Expand Up @@ -128,6 +128,11 @@ QgsMapSaveDialog::QgsMapSaveDialog( QWidget *parent, QgsMapCanvas *mapCanvas, co
{
mGeoPDFOptionsStackedWidget->setCurrentIndex( 0 );
mGeoPdfUnavailableReason->setText( QgsAbstractGeoPdfExporter::geoPDFAvailabilityExplanation() );
// avoid showing reason in disabled text color - we want it to stand out
QPalette p = mGeoPdfUnavailableReason->palette();
p.setColor( QPalette::Disabled, QPalette::WindowText, QPalette::WindowText );
mGeoPdfUnavailableReason->setPalette( p );
mGeoPDFOptionsStackedWidget->removeWidget( mGeoPDFOptionsStackedWidget->widget( 1 ) );
}
else
{
Expand Down

0 comments on commit ff3e421

Please sign in to comment.