diff --git a/gui/v2/workers/worker_thread.py b/gui/v2/workers/worker_thread.py index e0d1eab..6092659 100755 --- a/gui/v2/workers/worker_thread.py +++ b/gui/v2/workers/worker_thread.py @@ -179,11 +179,7 @@ class WorkerThread(QThread): try: for profile_id in self.profile_data: profile = ProfileController.get(int(profile_id)) - if isinstance(profile, SessionProfile): - self._disable_profile(profile) - for profile_id in self.profile_data: - profile = ProfileController.get(int(profile_id)) - if isinstance(profile, SystemProfile): + if isinstance(profile, SessionProfile) or isinstance(profile, SystemProfile): self._disable_profile(profile) self.text_output.emit("All profiles were successfully disabled") except SudoScript as e: