]> git.mxchange.org Git - flightgear.git/commitdiff
Simplify looking up the GUI subsystem.
authordavid <david>
Sat, 18 Jan 2003 21:10:49 +0000 (21:10 +0000)
committerdavid <david>
Sat, 18 Jan 2003 21:10:49 +0000 (21:10 +0000)
src/GUI/dialog.cxx

index 38c77697bac73ae4ca527ebcf633463cf34472cd..a52e8d1a36ddfaeddad8f8d9d224c096f78c15c8 100644 (file)
@@ -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();