Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Settings -> Project Properties -> Projections now shows, as selected,…
… the current projection. Previously nothing was selected, making it difficult to determine what the current projection actually was.

This is because QgsProjectionSelector::setSelectedSRSID() now works as advertised when called externally.

It didn't work before, because setSelectedSRSID() did not make sure the tree widget was pre-populated with the projection list.

This commit is a pre-requisite to fixing #11.  This is so that we can actually perform the experiment to prove future bug fixes against #11.



git-svn-id: http://svn.osgeo.org/qgis/trunk@5618 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
morb_au committed Jul 21, 2006
1 parent 6cf9f11 commit 095e37f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/widgets/projectionselector/qgsprojectionselector.cpp
Expand Up @@ -146,6 +146,19 @@ QString QgsProjectionSelector::ogcWmsCrsFilterAsSqlExpression(QSet<QString> * cr

void QgsProjectionSelector::setSelectedSRSName(QString theSRSName)
{
// ensure the projection list view is actually populated
// before we select from its contents

if (!mProjListDone)
{
applyProjList(&mCrsFilter);
}

if (!mUserProjListDone)
{
applyUserProjList(&mCrsFilter);
}

mSRSNameSelection = theSRSName;
mSRSNameSelectionPending = TRUE;
applySRSNameSelection();
Expand All @@ -154,6 +167,19 @@ void QgsProjectionSelector::setSelectedSRSName(QString theSRSName)

void QgsProjectionSelector::setSelectedSRSID(long theSRSID)
{
// ensure the projection list view is actually populated
// before we select from its contents

if (!mProjListDone)
{
applyProjList(&mCrsFilter);
}

if (!mUserProjListDone)
{
applyUserProjList(&mCrsFilter);
}

mSRSIDSelection = theSRSID;
mSRSIDSelectionPending = TRUE;
applySRSIDSelection();
Expand Down

0 comments on commit 095e37f

Please sign in to comment.