mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
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:
parent
40ebc7150c
commit
ed4278c46c
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user