summaryrefslogtreecommitdiffstats
path: root/pokemodr/DialogUI.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-05-21 17:22:27 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-05-21 17:22:27 +0000
commitfa85318e91ea9bbe4638092767b3b8e0ea64f57c (patch)
treeeb0bcb69ab624721d59ec9905d392937810cb7b6 /pokemodr/DialogUI.cpp
parent404b30c8601d3a3cb25bb6972427d93b1ebed640 (diff)
downloadsigen-fa85318e91ea9bbe4638092767b3b8e0ea64f57c.tar.gz
sigen-fa85318e91ea9bbe4638092767b3b8e0ea64f57c.tar.xz
sigen-fa85318e91ea9bbe4638092767b3b8e0ea64f57c.zip
[FIX] Classes in pokemod will no longer emit a changed signal if not actually changed
[FIX] Logic error with checking to see if certain GUI elements need resetting [FIX] Using activated rather than currentIndexChanged signals for combo boxes [FIX] Qt bugs now irrelevant git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@161 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr/DialogUI.cpp')
-rw-r--r--pokemodr/DialogUI.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/pokemodr/DialogUI.cpp b/pokemodr/DialogUI.cpp
index 98317e5e..cf76b9cc 100644
--- a/pokemodr/DialogUI.cpp
+++ b/pokemodr/DialogUI.cpp
@@ -64,10 +64,9 @@ void DialogUI::discard()
void DialogUI::on_varDialog_textChanged()
{
- // FIXME: Qt bug: http://trolltech.com/developer/task-tracker/index_html?id=212016&method=entry
- QString text = varDialog->toPlainText();
- if (text != static_cast<Dialog*>(modified())->dialog())
- static_cast<Dialog*>(modified())->setDialog(text);
+ QTextCursor cursor = varDialog->textCursor();
+ static_cast<Dialog*>(modified())->setDialog(varDialog->toPlainText());
+ varDialog->setTextCursor(cursor);
}
void DialogUI::on_varCommand_activated(const int command)