Skip to content
Permalink
Browse files

hide the extent from canvas button if the canvas is not set

  • Loading branch information
Gustry authored and m-kuhn committed Dec 14, 2017
1 parent 4312a84 commit 49990b840aba307fee382a95f326e3fea4e87504
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/gui/qgsextentgroupbox.cpp
@@ -48,6 +48,7 @@ QgsExtentGroupBox::QgsExtentGroupBox( QWidget *parent )

mOriginalExtentButton->setVisible( false );
mButtonDrawOnCanvas->setVisible( false );
mCurrentExtentButton->setVisible( false );

connect( mCurrentExtentButton, &QAbstractButton::clicked, this, &QgsExtentGroupBox::setOutputExtentFromCurrent );
connect( mOriginalExtentButton, &QAbstractButton::clicked, this, &QgsExtentGroupBox::setOutputExtentFromOriginal );
@@ -332,9 +333,11 @@ void QgsExtentGroupBox::setMapCanvas( QgsMapCanvas *canvas )
{
mCanvas = canvas;
mButtonDrawOnCanvas->setVisible( true );
mCurrentExtentButton->setVisible( true );
}
else
{
mButtonDrawOnCanvas->setVisible( false );
mCurrentExtentButton->setVisible( false );
}
}

0 comments on commit 49990b8

Please sign in to comment.
You can’t perform that action at this time.