src/configDialog.cpp

changeset 189
ac2d3e8dd110
parent 186
a130960bb220
child 191
9bb6a17305ad
--- a/src/configDialog.cpp	Thu May 09 17:03:44 2013 +0300
+++ b/src/configDialog.cpp	Fri May 10 17:39:56 2013 +0300
@@ -289,7 +289,7 @@
 	for (int i = 0; i < g_NumGrids; ++i) {
 		// Icon
 		lb_gridIcons[i] = new QLabel;
-		lb_gridIcons[i]->setPixmap (getIcon (fmt ("grid-%s", str (g_GridInfo[i].name).tolower ().chars ())));
+		lb_gridIcons[i]->setPixmap (getIcon (fmt ("grid-%s", str (g_GridInfo[i].name).lower ().chars ())));
 		
 		// Text label
 		lb_gridLabels[i] = new QLabel (fmt ("%s:", g_GridInfo[i].name));
@@ -392,7 +392,7 @@
 				item->setText ("[[unknown color]]");
 				item->setIcon (getIcon ("error"));
 			} else {
-				item->setText (col->zName);
+				item->setText (col->name);
 				item->setIcon (makeColorIcon (col, 16));
 			}
 		}
@@ -427,7 +427,7 @@
 			return; // don't color separators
 	}
 	
-	short dDefault = entry ? entry->col->index () : -1;
+	short dDefault = entry ? entry->col->index : -1;
 	short dValue;
 	
 	if (ColorSelectDialog::staticDialog (dValue, dDefault, this) == false)
@@ -674,7 +674,7 @@
 		if (entry.bSeparator)
 			val += '|';
 		else
-			val.appendformat ("%d", entry.col->index ());
+			val += fmt ("%d", entry.col->index);
 	}
 	
 	return val;

mercurial