[rkward-cvs] SF.net SVN: rkward:[4275] trunk/rkward

tfry at users.sourceforge.net tfry at users.sourceforge.net
Wed Aug 8 16:22:37 UTC 2012


Revision: 4275
          http://rkward.svn.sourceforge.net/rkward/?rev=4275&view=rev
Author:   tfry
Date:     2012-08-08 16:22:37 +0000 (Wed, 08 Aug 2012)
Log Message:
-----------
Make sure to save/load katepart configuration settings.

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

Modified: trunk/rkward/ChangeLog
===================================================================
--- trunk/rkward/ChangeLog	2012-06-04 14:43:00 UTC (rev 4274)
+++ trunk/rkward/ChangeLog	2012-08-08 16:22:37 UTC (rev 4275)
@@ -1,3 +1,4 @@
+- Fixed: Changed configuration settings would not be saved for script editor
 - Fixed: One character missing in R commands on lines longer than 4096 characters
 - Fixed: "Next"-button in wizards would remain enabled while settings are missing on a page
 - Fixed: Dynamic pages in a wizard would cause a layout bug on the first page

Modified: trunk/rkward/rkward/windows/rkcommandeditorwindow.cpp
===================================================================
--- trunk/rkward/rkward/windows/rkcommandeditorwindow.cpp	2012-06-04 14:43:00 UTC (rev 4274)
+++ trunk/rkward/rkward/windows/rkcommandeditorwindow.cpp	2012-08-08 16:22:37 UTC (rev 4275)
@@ -18,8 +18,6 @@
 
 #include <kxmlguifactory.h>
 
-#include <ktexteditor/configinterface.h>
-#include <ktexteditor/sessionconfiginterface.h>
 #include <ktexteditor/editorchooser.h>
 #include <ktexteditor/modificationinterface.h>
 #include <ktexteditor/markinterface.h>
@@ -97,6 +95,7 @@
 	if (em_iface) em_iface->setModifiedOnDiskWarning (true);
 	else RK_ASSERT (false);
 	m_view = m_doc->createView (this);
+	m_doc->editor ()->readConfig ();
 
 	setFocusProxy (m_view);
 	setFocusPolicy (Qt::StrongFocus);
@@ -158,6 +157,9 @@
 
 RKCommandEditorWindow::~RKCommandEditorWindow () {
 	RK_TRACE (COMMANDEDITOR);
+
+	m_doc->editor ()->writeConfig ();
+
 	delete hinter;
 	delete m_doc;
 	if (!delete_on_close.isEmpty ()) KIO::del (delete_on_close)->start ();

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