--- a/application/src/PodcastFeedView.cpp Mon Jun 07 23:06:17 2010 +0100
+++ b/application/src/PodcastFeedView.cpp Fri Jul 02 15:57:01 2010 +0100
@@ -586,7 +586,13 @@
CleanupStack::PopAndDestroy(waitText);
iOpmlState = EOpmlSearching;
- iPodcastModel.FeedEngine().SearchForFeedL(url);
+ TRAPD(err, iPodcastModel.FeedEngine().SearchForFeedL(url));
+
+ if (err != KErrNone)
+ {
+ delete iWaitDialog;
+ iOpmlState = EOpmlIdle;
+ }
}
else
{
@@ -846,6 +852,8 @@
{
TBuf<KMaxMessageLength> message;
iEikonEnv->ReadResourceL(message, R_PODCAST_CONNECTION_ERROR);
+ delete iWaitDialog;
+ iOpmlState = EOpmlIdle;
ShowErrorMessageL(message);
}
break;