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/setup_mods.cpp | |
parent | b3ad7da111d1a21f14de39d84be97104a9666017 (diff) | |
download | manaplus-46585d7c62a53bfaf5173aa4e67d64735af1d2ed.tar.gz manaplus-46585d7c62a53bfaf5173aa4e67d64735af1d2ed.tar.bz2 manaplus-46585d7c62a53bfaf5173aa4e67d64735af1d2ed.tar.xz manaplus-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/setup_mods.cpp')
-rw-r--r-- | src/gui/widgets/tabs/setup_mods.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/widgets/tabs/setup_mods.cpp b/src/gui/widgets/tabs/setup_mods.cpp index 6857b6700..646bfdb7e 100644 --- a/src/gui/widgets/tabs/setup_mods.cpp +++ b/src/gui/widgets/tabs/setup_mods.cpp @@ -45,7 +45,6 @@ Setup_Mods::Setup_Mods(const Widget2 *const widget) : ContainerPlacer place = h.getPlacer(0, 0); place(0, 0, mScroll, 10, 10); - setDimension(gcn::Rectangle(0, 0, 550, 350)); } @@ -114,3 +113,8 @@ void Setup_Mods::saveMods() } serverConfig.setValue("mods", modsString); } + +void Setup_Mods::externalUnloaded() +{ + clear(); +} |