diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-01-09 14:16:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-01-09 14:16:53 +0300 |
commit | 46585d7c62a53bfaf5173aa4e67d64735af1d2ed (patch) | |
tree | 3ffa2902ee94455441dcc7fe4ae7b1e027e302e7 /src/gui/widgets/tabs/setuptabscroll.cpp | |
parent | b3ad7da111d1a21f14de39d84be97104a9666017 (diff) | |
download | plus-46585d7c62a53bfaf5173aa4e67d64735af1d2ed.tar.gz plus-46585d7c62a53bfaf5173aa4e67d64735af1d2ed.tar.bz2 plus-46585d7c62a53bfaf5173aa4e67d64735af1d2ed.tar.xz plus-46585d7c62a53bfaf5173aa4e67d64735af1d2ed.zip |
add ability to notify setup pages about disconnect from server.
Show mods page only if connected to server.
Diffstat (limited to 'src/gui/widgets/tabs/setuptabscroll.cpp')
-rw-r--r-- | src/gui/widgets/tabs/setuptabscroll.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/widgets/tabs/setuptabscroll.cpp b/src/gui/widgets/tabs/setuptabscroll.cpp index 81c191dd6..659ef5824 100644 --- a/src/gui/widgets/tabs/setuptabscroll.cpp +++ b/src/gui/widgets/tabs/setuptabscroll.cpp @@ -134,6 +134,18 @@ void SetupTabScroll::externalUpdated() } } +void SetupTabScroll::externalUnloaded() +{ + for (std::map<std::string, SetupItem*>::const_iterator + iter = mItems.begin(), iter_end = mItems.end(); + iter != iter_end; ++ iter) + { + SetupItem *const widget = (*iter).second; + if (widget && !widget->isMainConfig()) + widget->externalUnloaded((*iter).first); + } +} + void SetupTabScroll::widgetResized(const gcn::Event &event A_UNUSED) { mScroll->setWidth(getWidth() - 12); |