[rkward-cvs] SF.net SVN: rkward:[3705] trunk/rkward/rkward/windows/rkhelpsearchwindow. cpp
tfry at users.sourceforge.net
tfry at users.sourceforge.net
Sun Jul 31 14:24:20 UTC 2011
Revision: 3705
http://rkward.svn.sourceforge.net/rkward/?rev=3705&view=rev
Author: tfry
Date: 2011-07-31 14:24:20 +0000 (Sun, 31 Jul 2011)
Log Message:
-----------
Slightly safer code.
Modified Paths:
--------------
trunk/rkward/rkward/windows/rkhelpsearchwindow.cpp
Modified: trunk/rkward/rkward/windows/rkhelpsearchwindow.cpp
===================================================================
--- trunk/rkward/rkward/windows/rkhelpsearchwindow.cpp 2011-07-31 14:21:39 UTC (rev 3704)
+++ trunk/rkward/rkward/windows/rkhelpsearchwindow.cpp 2011-07-31 14:24:20 UTC (rev 3705)
@@ -163,10 +163,10 @@
RK_TRACE (APP);
// we use .rk.getHelp() instead of plain help() to receive an error, if no help could be found
- QString command;
- if (type.isEmpty () || type == "help") command = ".rk.getHelp(";
- else if (type == "demo") command = "rk.demo(";
+ QString command = ".rk.getHelp(";
+ if (type == "demo") command = "rk.demo(";
else if (type == "vignette") command = "vignette(";
+
command.append (RObject::rQuote (function_name));
if (!package.isEmpty ()) command.append (", package=" + package);
command.append (")");
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