+
+/**
+ * This slot function called when ever dialog rejected.
+ */
+void HelpDialog::killHelpDialogs()
+{
+ if(helpResultsDialog)
+ {
+ qDebug() << "__Help kill: helpResultsDialog";
+ delete helpResultsDialog;
+ helpResultsDialog = NULL;
+ }
+ if(helpAccelerationDialog)
+ {
+ qDebug() << "__Help kill: helpAccelerationDialog";
+ delete helpAccelerationDialog;
+ helpAccelerationDialog = NULL;
+ }
+ if(helpRoutingDialog)
+ {
+ qDebug() << "__Help kill: helpRoutingDialog";
+ delete helpRoutingDialog;
+ helpRoutingDialog = NULL;
+ }
+ if(creditsDialog)
+ {
+ qDebug() << "__Help kill: creditsDialog";
+ delete creditsDialog;
+ creditsDialog = NULL;
+ }
+
+ if(helpSettingsDialog)
+ {
+ qDebug() << "__Help kill: helpSettingsDialog";
+ delete helpSettingsDialog;
+ helpSettingsDialog = NULL;
+ }
+}