From 98385748ac1a9076a051fe661686378f0d462f85 Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 25 Sep 2015 16:37:28 +0000 Subject: [PATCH] Fixed string error saving shortcuts. --- common/lc_shortcuts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lc_shortcuts.cpp b/common/lc_shortcuts.cpp index fea94a39..e111c812 100644 --- a/common/lc_shortcuts.cpp +++ b/common/lc_shortcuts.cpp @@ -56,7 +56,7 @@ bool lcSaveKeyboardShortcuts(lcFile& File, const lcKeyboardShortcuts& Shortcuts) if (Shortcuts.Shortcuts[CommandIdx].isEmpty()) continue; - sprintf(Line, "%s=%s\n", gCommands[CommandIdx].ID, Shortcuts.Shortcuts[CommandIdx]); + sprintf(Line, "%s=%s\n", gCommands[CommandIdx].ID, Shortcuts.Shortcuts[CommandIdx].toUtf8().constData()); // todo: qstring File.WriteLine(Line); }