From: <ma...@us...> - 2013-12-16 21:37:53
|
Revision: 9077 http://sourceforge.net/p/planeshift/code/9077 Author: magodra Date: 2013-12-16 21:37:50 +0000 (Mon, 16 Dec 2013) Log Message: ----------- Disabled last used tab in the descriptions window when windows is opended for the 2nd time. Modified Paths: -------------- trunk/src/client/gui/pawsdetailwindow.cpp Modified: trunk/src/client/gui/pawsdetailwindow.cpp =================================================================== --- trunk/src/client/gui/pawsdetailwindow.cpp 2013-12-15 22:16:57 UTC (rev 9076) +++ trunk/src/client/gui/pawsdetailwindow.cpp 2013-12-16 21:37:50 UTC (rev 9077) @@ -58,6 +58,7 @@ ////////////////////////////////////////////////////////////////////// pawsDetailWindow::pawsDetailWindow() + :lastTab(NULL) { target = NULL; details_editable = false; @@ -86,6 +87,10 @@ pawsButton* button = (pawsButton*)FindWidget( "ShowDescr" ); if(button) { + if (lastTab && lastTab != button) + { + lastTab->SetState(false); + } lastTab = button; button->SetState(true); } @@ -158,6 +163,10 @@ if(!lastTab->IsVisible()) { pawsButton* button = (pawsButton*)FindWidget( "ShowDescr" ); + if (lastTab && lastTab != button) + { + lastTab->SetState(false); + } lastTab = button; button->SetState(true); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |