Fixed string error saving shortcuts.

This commit is contained in:
leo 2015-09-25 16:37:28 +00:00
parent 5149ef3311
commit 98385748ac

View file

@ -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);
}