From 5bcd46b6be2eb235cbf599027930e2bcf64b1651 Mon Sep 17 00:00:00 2001
From: Roberto Raggi <roberto.raggi@nokia.com>
Date: Thu, 26 Nov 2009 12:21:00 +0100
Subject: [PATCH] Preview the quickfix operation

---
 src/plugins/cppeditor/cppeditor.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/plugins/cppeditor/cppeditor.cpp b/src/plugins/cppeditor/cppeditor.cpp
index ac826bda32b..0bb303bfff0 100644
--- a/src/plugins/cppeditor/cppeditor.cpp
+++ b/src/plugins/cppeditor/cppeditor.cpp
@@ -1681,7 +1681,9 @@ void CPPEditor::performQuickFix(int index)
 {
     CPPQuickFixCollector *quickFixCollector = CppPlugin::instance()->quickFixCollector();
     QuickFixOperationPtr op = m_quickFixes.at(index);
-    quickFixCollector->perform(op);
+    //quickFixCollector->perform(op);
+    op->createChangeSet();
+    setChangeSet(op->changeSet());
 }
 
 void CPPEditor::contextMenuEvent(QContextMenuEvent *e)
-- 
GitLab