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

List:       kde-commits
Subject:    KDE/kdevelop/plugins/snippet
From:       Robert Gruber <rgruber () users ! sourceforge ! net>
Date:       2007-03-13 7:57:00
Message-ID: 1173772620.542987.19850.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 642051 by rgruber:

Clear the snippet's keyword list at sync. It will be re-read from the file.


 M  +1 -2      snippet.cpp  


--- trunk/KDE/kdevelop/plugins/snippet/snippet.cpp #642050:642051
@@ -121,6 +121,7 @@
     }
 
     setSnippetText( newText );
+    keywords_.clear();
 
     if (metadata.count() > 0) {
         // if there is meta information, call handleMetaData() which is 
@@ -135,8 +136,6 @@
     //##META## keyword = abcdef
     QRegExp rx("(\\w+)\\s*=\\s*(\\w*)");
 
-    keywords_.clear();
-
     QString str;
     foreach(str, metadata) {
         // strip off the metadata prefix from the lines
[prev in list] [next in list] [prev in thread] [next in thread] 

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