From 9200ed0568719fc3ffbf9c1f2fd07a667097b875 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 26 May 2008 07:08:59 +0000 Subject: [FIX] Recent files now works [FIX] Various UI fixes [FIX] Scripts are now escaped correctly in the XML git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@176 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemodr/GlobalScriptUI.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pokemodr/GlobalScriptUI.cpp') diff --git a/pokemodr/GlobalScriptUI.cpp b/pokemodr/GlobalScriptUI.cpp index 3aab8f08..2569b347 100644 --- a/pokemodr/GlobalScriptUI.cpp +++ b/pokemodr/GlobalScriptUI.cpp @@ -53,7 +53,9 @@ void GlobalScriptUI::discard() void GlobalScriptUI::on_varName_textChanged(const QString& name) { + const int cursor = varName->cursorPosition(); static_cast(modified())->setName(name); + varName->setCursorPosition(cursor); } void GlobalScriptUI::on_varScript_valueChanged(const Script& script) -- cgit