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

List:       kde-commits
Subject:    new_kcm_code: kdelibs/kutils
From:       Frans Englich <frans.englich () telia ! com>
Date:       2004-09-14 19:17:03
Message-ID: 20040914191703.386B9175C () office ! kde ! org
[Download RAW message or body]

CVS commit by englich: 

Small fixes


  M +6 -8      kcmodulecontainer.cpp   1.1.2.3
  M +1 -1      kcmodulecontainer.h   1.1.2.3


--- kdelibs/kutils/kcmodulecontainer.cpp  #1.1.2.2:1.1.2.3
@@ -53,5 +53,4 @@ class KCModuleContainer::KCModuleContain
                         , btnLayout( 0 )
                         , topLayout( 0 )
-                        , changed( false )
                         {};
 
@@ -63,5 +62,4 @@ class KCModuleContainer::KCModuleContain
                 QHBoxLayout *btnLayout;
                 QVBoxLayout *topLayout;
-                bool changed;
 
 
@@ -132,5 +130,6 @@ void KCModuleContainer::addModule( const
         if ( !KService::serviceByDesktopName( module ) )
         {
-                kdDebug() << "KCModuleContainer: module '" << module << "' was not \
found and thus not loaded" << endl; +                kdDebug(713) << \
"KCModuleContainer: module '" <<  +                        module << "' was not found \
and thus not loaded" << endl;  return;
         }
@@ -235,9 +234,8 @@ void KCModuleContainer::moduleChanged(KC
 {
         changedModules.append( proxy );
-        kdDebug() <<"moduleChanged()";
-        if(!d->changed)
-                kdDebug() <<"EMITTT!";
+        if( changedModules.isEmpty() )
+                return;
+
                 emit changed(true);
-        d->changed = true;
 }
 

--- kdelibs/kutils/kcmodulecontainer.h  #1.1.2.2:1.1.2.3
@@ -136,5 +136,5 @@ class KCModuleContainer : public KCModul
 
                 /**
-                 * Enables/disables the Admin Mode button if appropriate.
+                 * Enables/disables the Admin Mode button, as appropriate.
                  */
                 void tabSwitched( QWidget * module );


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

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