summaryrefslogtreecommitdiffstats
path: root/src/dialogs/dietwizarddialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dialogs/dietwizarddialog.cpp')
-rw-r--r--src/dialogs/dietwizarddialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dialogs/dietwizarddialog.cpp b/src/dialogs/dietwizarddialog.cpp
index 30414cf..52f6758 100644
--- a/src/dialogs/dietwizarddialog.cpp
+++ b/src/dialogs/dietwizarddialog.cpp
@@ -207,7 +207,7 @@ void DietWizardDialog::createDiet( void )
bool found = false;
TQValueList <RecipeList::Iterator> tempDishRList = tempRList;
while ( ( !found ) && !tempDishRList.empty() ) {
- int random_index = ( int ) ( ( float ) ( kapp->random() ) / ( float ) RAND_MAX * tempDishRList.count() );
+ int random_index = ( int ) ( ( float ) ( tdeApp->random() ) / ( float ) RAND_MAX * tempDishRList.count() );
TQValueList<RecipeList::Iterator>::Iterator iit = tempDishRList.at( random_index ); // note that at() retrieves an iterator to the iterator list, so we need to use * in order to get the RecipeList::Iterator
RecipeList::Iterator rit = *iit;