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,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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user