[rkward-cvs] rkward/rkward/windows rkcommandeditorwindow.cpp,1.9,1.10

Pierre ecoch at users.sourceforge.net
Thu Nov 4 17:51:21 UTC 2004


Update of /cvsroot/rkward/rkward/rkward/windows
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26380/windows

Modified Files:
	rkcommandeditorwindow.cpp 
Log Message:
Little bugfix.

Index: rkcommandeditorwindow.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/windows/rkcommandeditorwindow.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** rkcommandeditorwindow.cpp	3 Nov 2004 14:53:41 -0000	1.9
--- rkcommandeditorwindow.cpp	4 Nov 2004 17:51:18 -0000	1.10
***************
*** 73,76 ****
--- 73,77 ----
  	RK_TRACE (COMMANDEDITOR);
  	delete pLayout;
+ 	delete m_doc;
  }
  
***************
*** 81,85 ****
  	bool found_mode = false;
  	int i;
! 	RK_DO (qDebug ("%s", "Looking for syntax highlighting definition"), COMMANDEDITOR, DL_INFO);
  	for (i = 0; i < modes_count; ++i) {
  		RK_DO (qDebug ("%s", highlightingInterface(doc)->hlModeName(i).lower().latin1 ()), COMMANDEDITOR, DL_DEBUG);
--- 82,86 ----
  	bool found_mode = false;
  	int i;
! 	//RK_DO (qDebug ("%s", "Looking for syntax highlighting definition"), COMMANDEDITOR, DL_INFO);
  	for (i = 0; i < modes_count; ++i) {
  		RK_DO (qDebug ("%s", highlightingInterface(doc)->hlModeName(i).lower().latin1 ()), COMMANDEDITOR, DL_DEBUG);
***************
*** 92,96 ****
  		highlightingInterface(doc)->setHlMode(i);
  	} else {
! 		RK_DO (qDebug ("%s", highlightingInterface(doc)->hlModeName(i).lower().latin1 ()), COMMANDEDITOR, DL_WARNING);
  	}
  }
--- 93,97 ----
  		highlightingInterface(doc)->setHlMode(i);
  	} else {
! 		//RK_DO (qDebug ("%s", highlightingInterface(doc)->hlModeName(i).lower().latin1 ()), COMMANDEDITOR, DL_WARNING);
  	}
  }
***************
*** 192,197 ****
  
  bool RKCommandEditorWindow::saveAs(const KURL &url){
! 	return m_doc->saveAs(url);
  	updateTabCaption(url); 
  }
  
--- 193,199 ----
  
  bool RKCommandEditorWindow::saveAs(const KURL &url){
! 	bool result = m_doc->saveAs(url);
  	updateTabCaption(url); 
+ 	return result;
  }
  





More information about the rkward-tracker mailing list