Skip to content

Commit

Permalink
When the vector project properties dialog box is requested, bring it to
Browse files Browse the repository at this point in the history
the front if it already exists.


git-svn-id: http://svn.osgeo.org/qgis/trunk@4767 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Jan 28, 2006
1 parent 40ebc71 commit ed4278c
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions src/gui/qgsvectorlayer.cpp
Expand Up @@ -1408,29 +1408,38 @@ void QgsVectorLayer::showLayerProperties()
qApp->setOverrideCursor(QCursor(Qt::WaitCursor));


if (!m_propertiesDialog)
{
#ifdef QGISDEBUG
std::cerr << "Creating new QgsVectorLayerProperties object\n";
std::cerr << "Creating new QgsVectorLayerProperties object\n";
#endif
m_propertiesDialog = new QgsVectorLayerProperties(this);
// Make sure that the UI starts out with the correct display
// field value
m_propertiesDialog = new QgsVectorLayerProperties(this);
// Make sure that the UI starts out with the correct display
// field value
#ifdef QGISDEBUG
std::cerr << "Setting display field in prop dialog\n";
std::cerr << "Setting display field in prop dialog\n";
#endif
m_propertiesDialog->setDisplayField(displayField());
m_propertiesDialog->setDisplayField(displayField());

#ifdef QGISDEBUG
std::cerr << "Resetting prop dialog\n";
std::cerr << "Resetting prop dialog\n";
#endif
m_propertiesDialog->reset();
m_propertiesDialog->reset();
#ifdef QGISDEBUG
std::cerr << "Raising prop dialog\n";
std::cerr << "Raising prop dialog\n";
#endif
m_propertiesDialog->raise();
m_propertiesDialog->raise();
#ifdef QGISDEBUG
std::cerr << "Showing prop dialog\n";
std::cerr << "Showing prop dialog\n";
#endif
m_propertiesDialog->show();
m_propertiesDialog->show();
}
else
{
m_propertiesDialog->show();
m_propertiesDialog->raise();
}

// restore normal cursor
qApp->restoreOverrideCursor();
}
Expand Down

0 comments on commit ed4278c

Please sign in to comment.