Skip to content

Commit

Permalink
asserting manager is not null when setting
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorVieiraZ committed Nov 13, 2024
1 parent 216a6b9 commit 965c176
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/merginapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3972,6 +3972,9 @@ bool MerginApi::isRetryableNetworkError( QNetworkReply *reply )

void MerginApi::setNetworkManager( QNetworkAccessManager *manager )
{
if ( !manager )
return;

if ( mManager == manager )
return;

Expand Down
1 change: 1 addition & 0 deletions core/merginapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,7 @@ class MerginApi: public QObject

/**
* Sets the network manager to be used for Mergin API requests
* Function will return early if manager is null.
*/
void setNetworkManager( QNetworkAccessManager *manager );

Expand Down

1 comment on commit 965c176

@inputapp-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS - version 24.11.693711 just submitted!

Please sign in to comment.