summaryrefslogtreecommitdiffstats
path: root/pokemodr/MapEffectUI.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-05-26 07:08:59 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-05-26 07:08:59 +0000
commit9200ed0568719fc3ffbf9c1f2fd07a667097b875 (patch)
tree0a7df5baf46c1b5f51ec0215f68ecd91cfa49863 /pokemodr/MapEffectUI.cpp
parent2be7d8f347d2f1e21832b29063609adc82d7bbfa (diff)
downloadsigen-9200ed0568719fc3ffbf9c1f2fd07a667097b875.tar.gz
sigen-9200ed0568719fc3ffbf9c1f2fd07a667097b875.tar.xz
sigen-9200ed0568719fc3ffbf9c1f2fd07a667097b875.zip
[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
Diffstat (limited to 'pokemodr/MapEffectUI.cpp')
-rw-r--r--pokemodr/MapEffectUI.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/pokemodr/MapEffectUI.cpp b/pokemodr/MapEffectUI.cpp
index 9727eb1c..f0057374 100644
--- a/pokemodr/MapEffectUI.cpp
+++ b/pokemodr/MapEffectUI.cpp
@@ -67,7 +67,9 @@ void MapEffectUI::discard()
void MapEffectUI::on_varName_textChanged(const QString& name)
{
+ const int cursor = varName->cursorPosition();
static_cast<MapEffect*>(modified())->setName(name);
+ varName->setCursorPosition(cursor);
}
void MapEffectUI::on_varCoordinate_valueChanged(const Point& coordinate)