[rkward-cvs] SF.net SVN: rkward:[3977] trunk/rkward/rkward/windows/rkcommandeditorwindow .cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Thu Oct 20 13:10:14 UTC 2011


Revision: 3977
          http://rkward.svn.sourceforge.net/rkward/?rev=3977&view=rev
Author:   tfry
Date:     2011-10-20 13:10:13 +0000 (Thu, 20 Oct 2011)
Log Message:
-----------
Small fix

Modified Paths:
--------------
    trunk/rkward/rkward/windows/rkcommandeditorwindow.cpp

Modified: trunk/rkward/rkward/windows/rkcommandeditorwindow.cpp
===================================================================
--- trunk/rkward/rkward/windows/rkcommandeditorwindow.cpp	2011-10-20 11:29:37 UTC (rev 3976)
+++ trunk/rkward/rkward/windows/rkcommandeditorwindow.cpp	2011-10-20 13:10:13 UTC (rev 3977)
@@ -483,9 +483,10 @@
 
 void RKCommandEditorWindow::setText (const QString &text) {
 	RK_TRACE (COMMANDEDITOR);
-	m_doc->setReadWrite (true);
+	bool old_rw = m_doc->isReadWrite ();
+	if (!old_rw) m_doc->setReadWrite (true);
 	m_doc->setText (text);
-	m_doc->setReadWrite (false);
+	if (!old_rw) m_doc->setReadWrite (false);
 }
 
 void RKCommandEditorWindow::updateCaption (KTextEditor::Document*) {

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the rkward-tracker mailing list