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

List:       kde-commits
Subject:    [plasmate/terietor/kconfigxt] editors/kconfigxt: Add the missing replace
From:       Giorgos Tsiapaliwkas <terietor () gmail ! com>
Date:       2012-07-14 17:46:00
Message-ID: 20120714174600.A620EA6094 () git ! kde ! org
[Download RAW message or body]

Git commit 755aa38f888c14257b5de45379b859ab52f00092 by Giorgos Tsiapaliwkas.
Committed on 14/07/2012 at 19:45.
Pushed by tsiapaliwkas into branch 'terietor/kconfigxt'.

Add the missing replace

M  +3    -0    editors/kconfigxt/kconfigxteditor.cpp

http://commits.kde.org/plasmate/755aa38f888c14257b5de45379b859ab52f00092

diff --git a/editors/kconfigxt/kconfigxteditor.cpp b/editors/kconfigxt/kconfigxteditor.cpp
index 7f27936..bbca6e4 100644
--- a/editors/kconfigxt/kconfigxteditor.cpp
+++ b/editors/kconfigxt/kconfigxteditor.cpp
@@ -223,6 +223,9 @@ void KConfigXtEditor::modifyGroup(QTreeWidgetItem* item, int column)
 
     QByteArray rawData = xmlFile.readAll();
 
+    //replace the data
+    rawData.replace(oldGroupEntry, newGroupEntry.toAscii());
+
     //clear the xml fle
     xmlFile.resize(0);
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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