settings: clear filename after deleting file from disk

It doesn't really matter, because in the next step we
are about to remove the connection.

However, once the connection is deleted from file, it's
clear that it has no more file-name.

(cherry picked from commit 1fd5c52eaf)
This commit is contained in:
Thomas Haller 2017-12-01 12:33:38 +01:00
parent 4334069b10
commit c7c76c1f32

View file

@ -755,6 +755,8 @@ nm_settings_connection_delete (NMSettingsConnection *self,
error))
return FALSE;
nm_settings_connection_set_filename (self, NULL);
set_visible (self, FALSE);
/* Tell agents to remove secrets for this connection */