Tag: cws_src680_dba30
User: oj      
Date: 05/12/29 05:46:02

Modified:
 /dba/dbaccess/source/ui/app/
  AppDetailPageHelper.cxx

Log:
 #i46967# clear preview only when no entry is avail

File Changes:

Directory: /dba/dbaccess/source/ui/app/
=======================================

File [changed]: AppDetailPageHelper.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/app/AppDetailPageHelper.cxx?r1=1.10&r2=1.10.4.1
Delta lines:  +4 -8
-------------------
--- AppDetailPageHelper.cxx     5 Oct 2005 14:45:14 -0000       1.10
+++ AppDetailPageHelper.cxx     29 Dec 2005 13:46:00 -0000      1.10.4.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: AppDetailPageHelper.cxx,v $
  *
- *  $Revision: 1.10 $
+ *  $Revision: 1.10.4.1 $
  *
- *  last change: $Author: kz $ $Date: 2005/10/05 14:45:14 $
+ *  last change: $Author: oj $ $Date: 2005/12/29 13:46:00 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -813,8 +813,6 @@
        DBTreeListBox* pTreeView = getCurrentView();
        if ( pTreeView )
        {
-        SvLBoxEntry* pSelected = pTreeView->GetSelectedEntry();
-        sal_Bool bClearPreview = sal_False;
                switch( _eType )
                {
                        case E_TABLE:
@@ -826,7 +824,6 @@
                                if ( pTreeView )
                                {
                                        SvLBoxEntry* pEntry = 
lcl_findEntry_impl(*pTreeView,_rName,pTreeView->First());
-                    bClearPreview = pSelected == pEntry;
                                        if ( pEntry )
                                                
pTreeView->GetModel()->Remove(pEntry);
                                }
@@ -837,7 +834,6 @@
                                        if ( pTreeView )
                                        {
                                                SvLBoxEntry* pEntry = 
lcl_findEntry(*pTreeView,_rName,pTreeView->First());
-                        bClearPreview = pSelected == pEntry;
                                                if ( pEntry )
                                                        
pTreeView->GetModel()->Remove(pEntry);
                                        }
@@ -846,7 +842,7 @@
                        default:
                                OSL_ENSURE(0,"Invalid element type");
                }
-        if ( bClearPreview && pSelected )
+               if ( !pTreeView->GetEntryCount() )
             showPreview(NULL);
        }
 }




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to