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

List:       kde-bugs-dist
Subject:    [Bug 68511] no panel menus when using more than one child panel
From:       John Firebaugh <jfirebaugh () kde ! org>
Date:       2004-03-31 2:10:32
Message-ID: 20040331021032.28810.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
      
http://bugs.kde.org/show_bug.cgi?id=68511      
jfirebaugh kde org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From jfirebaugh kde org  2004-03-31 04:10 -------
CVS commit by firebaugh: 

Revert the silly portion of the last change.

CCMAIL: 68511-done bugs kde org


  M +3 -4      childpanelextension.cpp   1.42
  M +1 -0      childpanelextension.h   1.18


--- kdebase/kicker/extensions/childpanel/childpanelextension.cpp  #1.41:1.42
 @ -61,4 +61,5  @ ChildPanelExtension::ChildPanelExtension
     , _opMnu( 0 )
     , _configFile(configFile)
+    , _built( false )
 {
     QVBoxLayout* layout = new QVBoxLayout( this );
 @ -264,10 +265,8  @ void ChildPanelExtension::addAppletConta
 void ChildPanelExtension::slotBuildOpMenu()
 {
-    static bool built = false;
-
-    if (built || !_opMnu)
+    if (_built || !_opMnu)
         return;
 
-    built = true;
+    _built = true;
     // setup addmenu and removemenu
     AddContainerMenu* addMnu = new AddContainerMenu(_containerArea, true, this);

--- kdebase/kicker/extensions/childpanel/childpanelextension.h  #1.17:1.18
 @ -84,4 +84,5  @ private:
     QPopupMenu       *_sizeMnu;
     QString          _configFile;
+    bool             _built;
 };
[prev in list] [next in list] [prev in thread] [next in thread] 

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