Debugger: Fix team restart request.
UserInterface:
- Add Clone() function to set of required virtuals. This asks the subclass
to create a new instance of its respective type.
{CommandLine,Graphical,Report}UserInterface:
- Implement the above function.
TeamDebugger:
- Add accessor for the currently active UI.
TargetHostInterface:
- Set correct request type when setting up the options for a team restart.
- Ask the TeamDebugger for its user interface and clone it in order to fill
in that aspect of the debug options. This fixes a regression introduced in
commit 880a64, which inadvertently resulted in team restarts no longer
working.
This commit is contained in:
@@ -66,6 +66,8 @@ public:
|
||||
{ return fCommandLineArgv; }
|
||||
SettingsManager* GetSettingsManager() const
|
||||
{ return fSettingsManager; }
|
||||
UserInterface* GetUserInterface() const
|
||||
{ return fUserInterface; }
|
||||
|
||||
virtual void MessageReceived(BMessage* message);
|
||||
|
||||
|
||||
@@ -56,6 +56,13 @@ public:
|
||||
// shut down the UI *now* -- no more user
|
||||
// feedback
|
||||
|
||||
virtual UserInterface* Clone() const = 0;
|
||||
// returns a new instance of the
|
||||
// appropriate user interface subclass.
|
||||
// primarily needed in order to
|
||||
// reconstruct the necessary information
|
||||
// for initiating a team restart.
|
||||
|
||||
virtual bool IsInteractive() const = 0;
|
||||
|
||||
virtual status_t LoadSettings(const TeamUiSettings* settings)
|
||||
|
||||
Reference in New Issue
Block a user