From b2713841b6ab9488fc66e7df831fa7eefbec8069 Mon Sep 17 00:00:00 2001 From: david Date: Sat, 18 Jan 2003 21:10:49 +0000 Subject: [PATCH] Simplify looking up the GUI subsystem. --- src/GUI/dialog.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/GUI/dialog.cxx b/src/GUI/dialog.cxx index 38c77697b..a52e8d1a3 100644 --- a/src/GUI/dialog.cxx +++ b/src/GUI/dialog.cxx @@ -18,9 +18,7 @@ static void action_callback (puObject * object) { GUIInfo * info = (GUIInfo *)object->getUserData(); - NewGUI * gui = - (NewGUI *)globals->get_subsystem_mgr() - ->get_group(FGSubsystemMgr::INIT)->get_subsystem("gui"); + NewGUI * gui = (NewGUI *)globals->get_subsystem("gui"); gui->setCurrentWidget(info->widget); for (int i = 0; i < info->bindings.size(); i++) info->bindings[i]->fire(); -- 2.39.5