Author: alink
Date: Mon Jul 7 00:31:11 2008
New Revision: 27801
URL: http://svn.gna.org/viewcvs/wesnoth?rev=27801&view=rev
Log:
Change default action of delete/dismiss buttons when deleting the last item.
Now stop closing the dialog, because it may have other functions even with no
items, and this also prevent closing when using filtered view only showing the
item(s) to delete (which is much more common, who delete/dismiss everything?)
Modified:
trunk/src/construct_dialog.cpp
Modified: trunk/src/construct_dialog.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/construct_dialog.cpp?rev=27801&r1=27800&r2=27801&view=diff
==============================================================================
--- trunk/src/construct_dialog.cpp (original)
+++ trunk/src/construct_dialog.cpp Mon Jul 7 00:31:11 2008
@@ -814,12 +814,14 @@
if(selection >= 0) {
menu_ref.erase_item(selection);
}
- if(menu_ref.nitems() == 0) {
- set_result(CLOSE_DIALOG);
- } else {
- set_result(CONTINUE_DIALOG);
- info.first_time = true;
- }
+ // was used before to auto close empty menu
+ //if(menu_ref.nitems() == 0) {
+ // set_result(CLOSE_DIALOG);
+ //} else {
+
+ set_result(CONTINUE_DIALOG);
+ info.first_time = true;
+
}
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits