summaryrefslogtreecommitdiffstats
path: root/src/modules/eventeditor/eventeditor.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-12-25 23:22:28 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-12-27 23:29:38 +0900
commit1c8f24439baf33fc22649b31043f147b7c83594b (patch)
tree72a5e52a15d035be0825e50d50169cd8795c2970 /src/modules/eventeditor/eventeditor.cpp
parent30b47cc3f62d9af34afd40644e48eaf70d978345 (diff)
downloadkvirc-1c8f24439baf33fc22649b31043f147b7c83594b.tar.gz
kvirc-1c8f24439baf33fc22649b31043f147b7c83594b.zip
Fix TQString formatting in 'KviTQString::sprintf'.HEADmaster
This was causing translation catalouges not to be found and eventually the program to always display in English. The problem was introduced by an automated Q --> TQ renaming done sometime in the past. 'KviTQString::sprintf' uses '%Q' as a marker for a TQString* argument, so using '%TQ' was resulting in garbage bytes being fed and the catalouges not being found. This resolves issue #44. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/modules/eventeditor/eventeditor.cpp')
-rw-r--r--src/modules/eventeditor/eventeditor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/eventeditor/eventeditor.cpp b/src/modules/eventeditor/eventeditor.cpp
index 06d6e3e..6b58280 100644
--- a/src/modules/eventeditor/eventeditor.cpp
+++ b/src/modules/eventeditor/eventeditor.cpp
@@ -193,7 +193,7 @@ void KviEventEditor::getUniqueHandlerName(KviEventListViewItem *it,TQString &buf
if(KviTQString::equalCI(newName,ch->m_szName))
{
bFound = true;
- KviTQString::sprintf(newName,"%TQ_%d",&buffer,idx);
+ KviTQString::sprintf(newName,"%Q_%d",&buffer,idx);
idx++;
break;
}