summaryrefslogtreecommitdiffstats
path: root/sigmodr/SigmodUI.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-09-13 21:12:46 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-09-13 21:12:46 +0000
commit2bb467c3caa4f7d0ca378776c89eebaaf1e912c3 (patch)
tree691542caead65355b0adae5e1407d6c6fba416ab /sigmodr/SigmodUI.cpp
parent493a35f02cc558ce7f06ef2a749b22359c608281 (diff)
downloadsigen-2bb467c3caa4f7d0ca378776c89eebaaf1e912c3.tar.gz
sigen-2bb467c3caa4f7d0ca378776c89eebaaf1e912c3.tar.xz
sigen-2bb467c3caa4f7d0ca378776c89eebaaf1e912c3.zip
[FIX] Sigmod description field fixed
[FIX] Fixed a bug with the Validation dialog being called twice with the same editor widget git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@261 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'sigmodr/SigmodUI.cpp')
-rw-r--r--sigmodr/SigmodUI.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/sigmodr/SigmodUI.cpp b/sigmodr/SigmodUI.cpp
index fd6df445..f6ef6aca 100644
--- a/sigmodr/SigmodUI.cpp
+++ b/sigmodr/SigmodUI.cpp
@@ -114,7 +114,9 @@ void Sigmodr::SigmodUI::on_varVersion_textChanged(const QString& version)
void Sigmodr::SigmodUI::on_varDescription_textChanged(const QString& description)
{
+ const int cursor = varDescription->cursorPosition();
qobject_cast<Sigmod::Sigmod*>(modified())->setDescription(description);
+ varDescription->setCursorPosition(cursor);
}
void Sigmodr::SigmodUI::on_varMap_activated(const int map)