summaryrefslogtreecommitdiffstats
path: root/pokemodr/SoundUI.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/SoundUI.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/SoundUI.cpp')
-rw-r--r--pokemodr/SoundUI.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/pokemodr/SoundUI.cpp b/pokemodr/SoundUI.cpp
index d1211ef7..e5f49e8d 100644
--- a/pokemodr/SoundUI.cpp
+++ b/pokemodr/SoundUI.cpp
@@ -82,7 +82,9 @@ void SoundUI::discard()
void SoundUI::on_varName_textChanged(const QString& name)
{
+ const int cursor = varName->cursorPosition();
static_cast<Sound*>(modified())->setName(name);
+ varName->setCursorPosition(cursor);
}
void SoundUI::on_buttonPlayPause_clicked()