r14483 - software/ui/src

Miriam Ruiz miriam at alioth.debian.org
Wed Aug 14 01:02:07 UTC 2013


Author: miriam
Date: 2013-08-14 01:02:05 +0000 (Wed, 14 Aug 2013)
New Revision: 14483

Modified:
   software/ui/src/goplay.cpp
Log:
Fixed segfault



Modified: software/ui/src/goplay.cpp
===================================================================
--- software/ui/src/goplay.cpp	2013-08-14 00:40:36 UTC (rev 14482)
+++ software/ui/src/goplay.cpp	2013-08-14 01:02:05 UTC (rev 14483)
@@ -175,15 +175,17 @@
 	ui.ResultsBrowser->clear();
 	if (engine.popcon().hasData())
 	{
+		char empty_string[1] = "";
 		ui.ResultsBrowser->column_widths(widths_with_popcon);
 		// tab delimited columns with colors
-		ui.ResultsBrowser->add(_("@B12 at C7@b at .PACKAGE\t at B12@C7 at b@.DESCRIPTION\t at B12@C7 at b@.POPCON"));
+		ui.ResultsBrowser->add(_("@B12 at C7@b at .PACKAGE\t at B12@C7 at b@.DESCRIPTION\t at B12@C7 at b@.POPCON"), empty_string);
 	}
 	else
 	{
+		char empty_string[1] = "";
 		ui.ResultsBrowser->column_widths(widths_without_popcon);
 		// tab delimited columns with colors
-		ui.ResultsBrowser->add(_("@B12 at C7@b at .PACKAGE\t at B12@C7 at b@.DESCRIPTION"));
+		ui.ResultsBrowser->add(_("@B12 at C7@b at .PACKAGE\t at B12@C7 at b@.DESCRIPTION"), empty_string);
 	}
 
 	// FIXME: there are better ways to remember the previous item




More information about the Pkg-games-commits mailing list