Author: shadowmaster
Date: Tue May 15 05:59:13 2012
New Revision: 54177
URL: http://svn.gna.org/viewcvs/wesnoth?rev=54177&view=rev
Log:
addon/mg: Fix terrible application of logic causing the Add-ons Manager to
never show up when the server list is empty, even when there are publishable
add-ons installed
Modified:
trunk/src/addon/manager_ui.cpp
Modified: trunk/src/addon/manager_ui.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/addon/manager_ui.cpp?rev=54177&r1=54176&r2=54177&view=diff
==============================================================================
--- trunk/src/addon/manager_ui.cpp (original)
+++ trunk/src/addon/manager_ui.cpp Tue May 15 05:59:13 2012
@@ -547,6 +547,7 @@
if(option_ids.empty()) {
if(!updates_only && can_publish_ids.empty() &&
can_delete_ids.empty()) {
gui2::show_error_message(disp.video(), _("There are no
add-ons available for download from this server."));
+ return;
} else if(updates_only) {
if(installed_addons().empty()) {
gui2::show_transient_message(disp.video(),
_("Add-ons Manager"), _("There are no add-ons installed."));
@@ -554,9 +555,8 @@
gui2::show_transient_message(disp.video(),
_("Add-ons Manager"), _("All add-ons are up to date."));
}
view = VIEW_ALL;
- }
-
- return;
+ return;
+ }
}
int result;
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits