Skip to content

Commit

Permalink
fix #958 - again
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@8674 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Jun 23, 2008
1 parent d6ec8ce commit 7727bd5
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1356,8 +1356,6 @@ void QgisApp::setupConnections()
connect(mMapCanvas, SIGNAL(extentsChanged()),this,SLOT(showExtents()));
connect(mMapCanvas, SIGNAL(scaleChanged(double)), this, SLOT(showScale(double)));
connect(mMapCanvas, SIGNAL(scaleChanged(double)), this, SLOT(updateMouseCoordinatePrecision()));

mNonEditMapTool=NULL;
connect(mMapCanvas, SIGNAL(mapToolSet(QgsMapTool *)), this, SLOT(mapToolChanged(QgsMapTool *)));

connect(mRenderSuppressionCBox, SIGNAL(toggled(bool )), mMapCanvas, SLOT(setRenderFlag(bool)));
Expand Down Expand Up @@ -2603,8 +2601,9 @@ void QgisApp::fileNew(bool thePromptToSaveFlag)

mMapCanvas->mapRender()->setProjectionsEnabled(FALSE);

pan(); // set map tool - panning

// set the initial map tool
mMapCanvas->setMapTool(mMapTools.mPan);
mNonEditMapTool = mMapTools.mPan; // signals are not yet setup to catch this
} // QgisApp::fileNew(bool thePromptToSaveFlag)


Expand Down Expand Up @@ -4540,7 +4539,7 @@ bool QgisApp::saveDirty()
if (QMessageBox::Save == answer)
{
if (!fileSave())
answer = QMessageBox::Cancel;
answer = QMessageBox::Cancel;
}
}

Expand Down Expand Up @@ -4876,7 +4875,7 @@ void QgisApp::activateDeactivateLayerRelatedActions(QgsMapLayer* layer)

if( !vlayer->isEditable() && mMapCanvas->mapTool() && mMapCanvas->mapTool()->isEditTool() )
{
mMapCanvas->setMapTool(mNonEditMapTool);
mMapCanvas->setMapTool(mNonEditMapTool);
}

if (dprovider)
Expand Down

0 comments on commit 7727bd5

Please sign in to comment.