summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 83b33d6)
raw | patch | inline | side by side (parent: 83b33d6)
author | joncruz <joncruz@users.sourceforge.net> | |
Sun, 2 Sep 2007 07:38:52 +0000 (07:38 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Sun, 2 Sep 2007 07:38:52 +0000 (07:38 +0000) |
src/helper/unit-tracker.cpp | patch | blob | history |
index 989be2400baa9736a2d8f115710581fca1678d2a..93f5bfee1e8ff5d5135a94a726a4b9d09da9a145 100644 (file)
gint count = gtk_tree_model_iter_n_children( GTK_TREE_MODEL(_store), 0 );
if ( (count > 0) && (_active > count) ) {
_setActive( count - 1 );
+ } else {
+ _setActive( _active );
}
}
void UnitTracker::_setActive( gint active )
{
- if ( active != _active ) {
+ if ( active != _active || (_activeUnit == 0) ) {
gint oldActive = _active;
GtkTreeIter iter;