diff --git a/src/main/java/com/andrewlalis/perfin/control/ProfilesViewController.java b/src/main/java/com/andrewlalis/perfin/control/ProfilesViewController.java index c26665a..8f3d08c 100644 --- a/src/main/java/com/andrewlalis/perfin/control/ProfilesViewController.java +++ b/src/main/java/com/andrewlalis/perfin/control/ProfilesViewController.java @@ -105,7 +105,7 @@ public class ProfilesViewController { private boolean openProfile(String name, boolean showPopup) { log.info("Opening profile \"{}\".", name); try { - PerfinApp.profileLoader.load(name); + Profile.setCurrent(PerfinApp.profileLoader.load(name)); ProfilesStage.closeView(); router.replace("accounts"); if (showPopup) Popups.message(profilesVBox, "The profile \"" + name + "\" has been loaded.");