diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-06-30 03:46:19 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-06-30 03:46:19 +0000 |
| commit | ab30493f374c0e4cf52bfe711dd8c9f6c90396d6 (patch) | |
| tree | 915903ada290bdd94314439bc163a000011b6142 /pokemod/Store.cpp | |
| parent | a423cf3db8fa90cc09d2f92ff892e4fcdda4af16 (diff) | |
| download | sigen-ab30493f374c0e4cf52bfe711dd8c9f6c90396d6.tar.gz sigen-ab30493f374c0e4cf52bfe711dd8c9f6c90396d6.tar.xz sigen-ab30493f374c0e4cf52bfe711dd8c9f6c90396d6.zip | |
[FIX] Using qobject_cast now where possible
[FIX] ScriptWidget now uses KTextEditor (highlighting)
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@218 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/Store.cpp')
| -rw-r--r-- | pokemod/Store.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pokemod/Store.cpp b/pokemod/Store.cpp index 819e42de..5e03231e 100644 --- a/pokemod/Store.cpp +++ b/pokemod/Store.cpp @@ -81,7 +81,7 @@ void Pokemod::Store::setName(const QString& name) void Pokemod::Store::setItem(const int item, const bool state) { - if (static_cast<const Pokemod*>(pokemod())->itemIndex(item) == INT_MAX) + if (qobject_cast<const Pokemod*>(pokemod())->itemIndex(item) == INT_MAX) { emit(error(bounds("item"))); return; |
