From 2bb467c3caa4f7d0ca378776c89eebaaf1e912c3 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sat, 13 Sep 2008 21:12:46 +0000 Subject: [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 --- sigmodr/SigmodUI.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sigmodr/SigmodUI.cpp') 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(modified())->setDescription(description); + varDescription->setCursorPosition(cursor); } void Sigmodr::SigmodUI::on_varMap_activated(const int map) -- cgit