When the vector project properties dialog box is requested, bring it to

the front if it already exists.


git-svn-id: http://svn.osgeo.org/qgis/trunk@4767 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
g_j_m 2006-01-28 20:25:05 +00:00
parent 40ebc7150c
commit ed4278c46c

View File

@ -1408,6 +1408,8 @@ void QgsVectorLayer::showLayerProperties()
qApp->setOverrideCursor(QCursor(Qt::WaitCursor));
if (!m_propertiesDialog)
{
#ifdef QGISDEBUG
std::cerr << "Creating new QgsVectorLayerProperties object\n";
#endif
@ -1431,6 +1433,13 @@ void QgsVectorLayer::showLayerProperties()
std::cerr << "Showing prop dialog\n";
#endif
m_propertiesDialog->show();
}
else
{
m_propertiesDialog->show();
m_propertiesDialog->raise();
}
// restore normal cursor
qApp->restoreOverrideCursor();
}