Skip to content

Commit

Permalink
fix georeferencer buttons
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@12167 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Nov 17, 2009
1 parent 1aba104 commit 0d5d839
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/plugins/georeferencer/mapcoordsdialog.cpp
Expand Up @@ -33,6 +33,10 @@ MapCoordsDialog::MapCoordsDialog( const QgsPoint& pixelCoords, QgsMapCanvas* qgi
: QDialog( parent, fl )
{
setupUi( this );

connect( buttonBox, SIGNAL( accepted() ), this, SLOT( accept() ) );
connect( buttonBox, SIGNAL( rejected() ), this, SLOT( reject() ) );

mPixelCoords = pixelCoords;
mQgisCanvas = qgisCanvas;
leXCoord->setValidator( new QDoubleValidator( this ) );
Expand Down Expand Up @@ -65,6 +69,7 @@ void MapCoordsDialog::accept()
{
QgsPoint mapCoords( leXCoord->text().toDouble(), leYCoord->text().toDouble() );
emit pointAdded( mPixelCoords, mapCoords );
QDialog::accept();
}

void MapCoordsDialog::maybeSetXY( const QgsPoint & xy, Qt::MouseButton button )
Expand Down

0 comments on commit 0d5d839

Please sign in to comment.