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

List:       kde-commits
Subject:    kdelibs/kate/interfaces
From:       Christoph Cullmann <crossfire () babylon2k ! de>
Date:       2003-05-04 21:46:15
[Download RAW message or body]

CVS commit by cullmann: 

check for double registers ;)


  M +5 -1      katecmd.cpp   1.3


--- kdelibs/kate/interfaces/katecmd.cpp  #1.2:1.3
@@ -34,4 +34,8 @@ bool KateCmd::registerCommand (Kate::Com
 
   for (uint z=0; z<l.count(); z++)
+    if (m_dict[l[z]])
+      return false;
+
+  for (uint z=0; z<l.count(); z++)
     m_dict.insert (l[z], cmd);
 


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

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