Author: cazfi
Date: Mon Aug 22 20:10:08 2016
New Revision: 33668

URL: http://svn.gna.org/viewcvs/freeciv?rev=33668&view=rev
Log:
Req_edit shows good description as constructed by req_text_insert() when ever 
it's available.

See patch #7626

Modified:
    trunk/tools/ruledit/req_edit.cpp

Modified: trunk/tools/ruledit/req_edit.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/tools/ruledit/req_edit.cpp?rev=33668&r1=33667&r2=33668&view=diff
==============================================================================
--- trunk/tools/ruledit/req_edit.cpp    (original)
+++ trunk/tools/ruledit/req_edit.cpp    Mon Aug 22 20:10:08 2016
@@ -26,6 +26,7 @@
 #include "fcintl.h"
 
 // common
+#include "reqtext.h"
 #include "requirements.h"
 
 // ruledit
@@ -143,7 +144,10 @@
       char buf[512];
       QListWidgetItem *item;
 
-      universal_name_translation(&preq->source, buf, sizeof(buf));
+      buf[0] = '\0';
+      if (!req_text_insert(buf, sizeof(buf), NULL, preq)) {
+        universal_name_translation(&preq->source, buf, sizeof(buf));
+      }
       item = new QListWidgetItem(QString::fromUtf8(buf));
       req_list->insertItem(i++, item);
       if (selected == preq) {


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to