# HG changeset patch # User teknolog # Date 1278082621 -3600 # Node ID fd105a5a9dad54e8df1d95e96a21125ac3755d6f # Parent 70b2f592a460425399c3699c435d67e00a431f02 Fix for bug 3051 - search wait dialog doesn't close if search fails diff -r 70b2f592a460 -r fd105a5a9dad application/src/PodcastFeedView.cpp --- 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 message; iEikonEnv->ReadResourceL(message, R_PODCAST_CONNECTION_ERROR); + delete iWaitDialog; + iOpmlState = EOpmlIdle; ShowErrorMessageL(message); } break;