[rkward-cvs] SF.net SVN: rkward: [798] trunk/rkward/rkward/khelpdlg.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Tue Oct 3 15:02:42 UTC 2006


Revision: 798
          http://svn.sourceforge.net/rkward/?rev=798&view=rev
Author:   tfry
Date:     2006-10-03 08:02:35 -0700 (Tue, 03 Oct 2006)

Log Message:
-----------
Fix fetching list of installed packages

Modified Paths:
--------------
    trunk/rkward/rkward/khelpdlg.cpp

Modified: trunk/rkward/rkward/khelpdlg.cpp
===================================================================
--- trunk/rkward/rkward/khelpdlg.cpp	2006-10-03 12:14:49 UTC (rev 797)
+++ trunk/rkward/rkward/khelpdlg.cpp	2006-10-03 15:02:35 UTC (rev 798)
@@ -97,7 +97,7 @@
 	main_layout->addWidget (resultsList);
 
 
-	RKGlobals::rInterface ()->issueCommand (".rk.get.installed.packages ()", RCommand::App | RCommand::Sync | RCommand::GetStringVector, QString::null, this, GET_INSTALLED_PACKAGES, 0);
+	RKGlobals::rInterface ()->issueCommand (".rk.get.installed.packages ()[[1]]", RCommand::App | RCommand::Sync | RCommand::GetStringVector, QString::null, this, GET_INSTALLED_PACKAGES, 0);
 
 	setCaption (i18n ("Help search"));
 }
@@ -205,8 +205,8 @@
 		}
 	} else if (command->getFlags () == GET_INSTALLED_PACKAGES) {
 		RK_ASSERT ((command->getDataLength () % 4) == 0);
-		int count = (command->getDataLength () / 4);
-		for (int i=0; i < count; ++i) {
+		unsigned int count = (command->getDataLength () / 4);
+		for (unsigned int i=0; i < count; ++i) {
 			packagesList->insertItem (command->getStringVector ()[i]);
 		}
 	} else {


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