[rkward-cvs] SF.net SVN: rkward:[2630] trunk/rkward/rkward/dialogs/rkloadlibsdialog.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Wed Aug 26 09:17:24 UTC 2009


Revision: 2630
          http://rkward.svn.sourceforge.net/rkward/?rev=2630&view=rev
Author:   tfry
Date:     2009-08-26 09:17:24 +0000 (Wed, 26 Aug 2009)

Log Message:
-----------
While at it, also enable sorting

Modified Paths:
--------------
    trunk/rkward/rkward/dialogs/rkloadlibsdialog.cpp

Modified: trunk/rkward/rkward/dialogs/rkloadlibsdialog.cpp
===================================================================
--- trunk/rkward/rkward/dialogs/rkloadlibsdialog.cpp	2009-08-26 08:37:23 UTC (rev 2629)
+++ trunk/rkward/rkward/dialogs/rkloadlibsdialog.cpp	2009-08-26 09:17:24 UTC (rev 2630)
@@ -339,6 +339,7 @@
 		RK_ASSERT (command->getDataLength () == 4);
 
 		installed_view->clear ();
+		installed_view->setSortingEnabled (false);
 
 		RData *package = command->getStructureVector ()[0];
 		RData *title = command->getStructureVector ()[1];
@@ -357,6 +358,7 @@
 			item->setText (3, libpath->getStringVector ()[i]);
 		}
 		installed_view->resizeColumnToContents (0);
+		installed_view->setSortingEnabled (true);
 	} else if (command->getFlags () == GET_LOADED_PACKAGES) {
 		RK_ASSERT (command->getDataType () == RData::StringVector);
 
@@ -419,7 +421,7 @@
 		// select corresponding package in list of available packages
 		QList<QTreeWidgetItem*> installed = installed_view->findItems (package_name, Qt::MatchExactly, 0);
 		if (!installed.isEmpty ()) {
-			RK_ASSERT (installed.count () == 1);
+			//RK_ASSERT (installed.count () == 1); // In fact, several versions of one package can be installed in several library locations
 			installed[0]->setSelected (true);
 		}
 	}


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