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

tfry at users.sourceforge.net tfry at users.sourceforge.net
Fri Mar 16 00:40:16 UTC 2007


Revision: 1597
          http://svn.sourceforge.net/rkward/?rev=1597&view=rev
Author:   tfry
Date:     2007-03-15 17:40:16 -0700 (Thu, 15 Mar 2007)

Log Message:
-----------
Also advance to next line, if no command was actually executed

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

Modified: trunk/rkward/rkward/windows/rkcommandeditorwindow.cpp
===================================================================
--- trunk/rkward/rkward/windows/rkcommandeditorwindow.cpp	2007-03-16 00:38:31 UTC (rev 1596)
+++ trunk/rkward/rkward/windows/rkcommandeditorwindow.cpp	2007-03-16 00:40:16 UTC (rev 1597)
@@ -319,10 +319,8 @@
 	RK_TRACE (COMMANDEDITOR);
 
 	QString command = m_view->currentTextLine ();
-	if (command.isEmpty ()) return;
+	if (!command.isEmpty ()) RKConsole::pipeUserCommand (new RCommand (command, RCommand::User, QString::null));
 
-	RKConsole::pipeUserCommand (new RCommand (command, RCommand::User, QString::null));
-
 	m_view->down ();		// advance to next line
 }
 


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