diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-01-05 21:45:31 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-01-05 21:45:31 +0100 |
commit | 3272306484ee358ee00c1926d88439814e7276bc (patch) | |
tree | e6c0e053a3c255859576d2ebd116174d60c23b7e /ftnoir_protocol_fg/ftnoir_protocol_fg.h | |
parent | 7b81b27f70cb5169bbd61de7cc6628dac5620cc8 (diff) |
remove needless settings reload in dialogs
Options handling was fixed to pass the same bundle to all consumers.
There's no need to reload it explicitly anymore.
Diffstat (limited to 'ftnoir_protocol_fg/ftnoir_protocol_fg.h')
-rw-r--r-- | ftnoir_protocol_fg/ftnoir_protocol_fg.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/ftnoir_protocol_fg/ftnoir_protocol_fg.h b/ftnoir_protocol_fg/ftnoir_protocol_fg.h index d35b9fbd..36768fd5 100644 --- a/ftnoir_protocol_fg/ftnoir_protocol_fg.h +++ b/ftnoir_protocol_fg/ftnoir_protocol_fg.h @@ -57,7 +57,6 @@ public: QString game_name() { return "FlightGear"; } - void reloadSettings(); private: settings s; TFlightGearData FlightData; @@ -70,15 +69,10 @@ class FGControls: public IProtocolDialog Q_OBJECT public: FGControls(); - void register_protocol(IProtocol *protocol) { - theProtocol = (FTNoIR_Protocol *) protocol; // Accept the pointer to the Protocol - } - void unregister_protocol() { - theProtocol = NULL; // Reset the pointer - } + void register_protocol(IProtocol *) {} + void unregister_protocol() {} private: Ui::UICFGControls ui; - FTNoIR_Protocol *theProtocol; settings s; private slots: void doOK(); |