OptionRow::Reload doesn't take an OptionRowDefinition.
Implement Reload() explicitly, so we can clearly short- circuit for static rows. Fix up ScreenOptionsEditCourseEntry (broken during the course of things).
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
#include "Course.h"
|
||||
class Song;
|
||||
|
||||
class OptionRowHandler;
|
||||
class OptionRowHandlerSongChoices;
|
||||
class ScreenOptionsEditCourseEntry : public ScreenOptionsEditCourseSubMenu
|
||||
{
|
||||
public:
|
||||
@@ -14,6 +16,8 @@ public:
|
||||
virtual void HandleScreenMessage( const ScreenMessage SM );
|
||||
|
||||
protected:
|
||||
OptionRowHandler *m_pModChangesHandler;
|
||||
OptionRowHandlerSongChoices *m_pSongHandler;
|
||||
|
||||
virtual void ImportOptions( int iRow, const vector<PlayerNumber> &vpns );
|
||||
virtual void ExportOptions( int iRow, const vector<PlayerNumber> &vpns );
|
||||
@@ -21,8 +25,6 @@ protected:
|
||||
virtual void AfterChangeValueInRow( int iRow, PlayerNumber pn );
|
||||
virtual void ProcessMenuStart( const InputEventPlus &input );
|
||||
|
||||
vector<Song*> m_vpDisplayedSongs; // corresponds with the choices in the Song row
|
||||
|
||||
CourseEntry m_Original; // use this to revert when cancelling
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user