X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fsettingspage.h;h=b68b78b190f16bd5334aedee1765b3532c077c9d;hp=3ef6d2cc5e16482cf1e4c5c34116a04007b038ca;hb=2cdbd53254371cd538a1437c39d22422249fea1a;hpb=bc77491a09c15f5170d4c1eb9608d5da75e81697 diff --git a/src/uisupport/settingspage.h b/src/uisupport/settingspage.h index 3ef6d2cc..b68b78b1 100644 --- a/src/uisupport/settingspage.h +++ b/src/uisupport/settingspage.h @@ -67,6 +67,12 @@ public: //! The title of this settings page. inline virtual QString title() const { return _title; } + //! Whether the settingspage needs a core connection to be selectable + /** This is a hint for the settingspage dialog. Do not rely on the settingspage not being + * visible if disconnected, and care about disabling it yourself. + */ + inline virtual bool needsCoreConnection() const { return false; } + //! The key this settings page stores its values under /** This needs to be overriden to enable automatic loading/saving/hasChanged checking of widgets. * The child widgets' values will be stored in client settings under this key. Every widget that