[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdevelop/lib/interfaces
From:       Tobias Gläßer <tobi.web () gmx ! de>
Date:       2004-06-08 20:55:28
Message-ID: 20040608205528.B6EAE126EC () office ! kde ! org
[Download RAW message or body]

CVS commit by tobgle: 

slight changes that were required for Finder


  M +11 -3     kdevdocumentationplugin.cpp   1.9
  M +1 -0      kdevdocumentationplugin.h   1.6


--- kdevelop/lib/interfaces/kdevdocumentationplugin.cpp  #1.8:1.9
@@ -105,12 +105,20 @@ DocumentationCatalogItem::~ Documentatio
 void DocumentationCatalogItem::setOpen(bool o)
 {
-    if (o && !isLoaded)
+    if (o)
     {
-        plugin()->createTOC(this);
-        isLoaded = true;
+        load();
     }
     DocumentationItem::setOpen(o);
 }
 
+void DocumentationCatalogItem::load()
+{
+if(isLoaded)
+return;
+
+        plugin()->createTOC(this);
+        isLoaded = true;
+}
+
 void DocumentationCatalogItem::activate()
 {

--- kdevelop/lib/interfaces/kdevdocumentationplugin.h  #1.5:1.6
@@ -62,4 +62,5 @@ public:
     
     virtual void setOpen(bool o);
+    void load();
     
 protected:


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic