Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
last small fix
  • Loading branch information
MorriganR authored and nyalldawson committed May 5, 2021
1 parent a69199c commit c640f46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsmaplayer.cpp
Expand Up @@ -2019,7 +2019,7 @@ void QgsMapLayer::setRefreshOnNotifyEnabled( bool enabled )
{
QgsDataProvider *lDataProvider = dataProvider();

if ( !lDataProvider || !lDataProvider->isValid() )
if ( !lDataProvider )
return;

if ( enabled && !isRefreshOnNotifyEnabled() )
Expand Down
3 changes: 3 additions & 0 deletions src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -295,6 +295,9 @@ QgsPostgresConn *QgsPostgresProvider::connectionRO() const

void QgsPostgresProvider::setListening( bool isListening )
{
if ( !mValid )
return;

if ( isListening && !mListener )
{
mListener.reset( QgsPostgresListener::create( mUri.connectionInfo( false ) ).release() );
Expand Down

0 comments on commit c640f46

Please sign in to comment.