Skip to content
Permalink
Browse files

Project dirtying improvements

- Mark as dirty  when renaming a layer/group
- Better approach to mark as dirty when changing CRS
- Better approach to mark as dirty when changing subset string
  • Loading branch information
nirvn committed May 28, 2018
1 parent b202d60 commit f5c0a2c4725d277eb568793b8232fd33ce8b4818
Showing with 6 additions and 2 deletions.
  1. +0 −1 src/app/qgisapp.cpp
  2. +3 −0 src/core/qgsmaplayer.cpp
  3. +3 −0 src/core/qgsvectorlayer.cpp
  4. +0 −1 src/gui/qgsquerybuilder.cpp
@@ -9632,7 +9632,6 @@ void QgisApp::setLayerCrs()
}
}

markDirty();
refreshMapCanvas();
}

@@ -93,6 +93,9 @@ QgsMapLayer::QgsMapLayer( QgsMapLayer::LayerType type,
// there for the compiler, so the pattern is actually \W
mID.replace( QRegExp( "[\\W]" ), QStringLiteral( "_" ) );

connect( this, &QgsMapLayer::crsChanged, this, &QgsMapLayer::configChanged );
connect( this, &QgsMapLayer::nameChanged, this, &QgsMapLayer::configChanged );

connect( mStyleManager, &QgsMapLayerStyleManager::currentStyleChanged, this, &QgsMapLayer::styleChanged );
connect( mRefreshTimer, &QTimer::timeout, this, [ = ] { triggerRepaint( true ); } );
}
@@ -896,7 +896,10 @@ bool QgsVectorLayer::setSubsetString( const QString &subset )
updateFields();

if ( res )
{
emit configChanged();
emit repaintRequested();
}

return res;
}
@@ -264,7 +264,6 @@ void QgsQueryBuilder::accept()

return;
}
QgsProject::instance()->setDirty( true );
}

QDialog::accept();

0 comments on commit f5c0a2c

Please sign in to comment.
You can’t perform that action at this time.