From b5417e890f2710403b7162fd62cd008e3d04313a Mon Sep 17 00:00:00 2001 From: Pritpal Bedi Date: Thu, 8 Jul 2010 06:20:38 +0000 Subject: [PATCH] 2010-07-07 23:20 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) * contrib/hbide/hbide.prg ! Fixed: no-show of source's contents when a panel was hosting only one source. Now source is visible loaded. --- harbour/ChangeLog | 5 +++++ harbour/contrib/hbide/hbide.prg | 10 +++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 3d5e2d9dab..9b2e9c53b0 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,11 @@ The license applies to all entries newer than 2009-04-28. */ +2010-07-07 23:20 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) + * contrib/hbide/hbide.prg + ! Fixed: no-show of source's contents when a panel was hosting + only one source. Now source is visible loaded. + 2010-07-07 18:44 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) * contrib/hbide/idemisc.prg * contrib/hbide/idesaveload.prg diff --git a/harbour/contrib/hbide/hbide.prg b/harbour/contrib/hbide/hbide.prg index 8925e8e6bc..ecabb2b0f3 100644 --- a/harbour/contrib/hbide/hbide.prg +++ b/harbour/contrib/hbide/hbide.prg @@ -512,9 +512,13 @@ METHOD HbIde:create( aParams ) FOR EACH cV IN ::oINI:aViews ::oDK:setView( cV ) - ::qTabWidget:setCurrentIndex( 0 ) - ::qTabWidget:setCurrentIndex( ::qTabWidget:count() - 1 ) - ::qTabWidget:setCurrentIndex( 0 ) + IF ::qTabWidget:count() == 1 + ::oEM:setSourceVisibleByIndex( 0 ) + ELSE + ::qTabWidget:setCurrentIndex( 0 ) + ::qTabWidget:setCurrentIndex( ::qTabWidget:count() - 1 ) + ::qTabWidget:setCurrentIndex( 0 ) + ENDIF NEXT /* Refresh Stylesheet for all components at once */