This commit is contained in:
fgerlits 2006-11-02 20:03:26 +00:00
parent 13a6ae0f01
commit b8d5f8d035
1 changed files with 6 additions and 4 deletions

View File

@ -638,8 +638,8 @@ SearchWindow :: remoteSearchClose(void)
storage = gLiveSupport->getStorageClient();
Ptr<SessionId>::Ref sessionId = gLiveSupport->getSessionId();
AsyncState state;
Ptr<Glib::ustring>::Ref errorMessage;
AsyncState state;
Ptr<Glib::ustring>::Ref errorMessage(new Glib::ustring());
try {
state = storage->checkTransport(remoteSearchToken, errorMessage);
} catch (XmlRpcException &e) {
@ -647,7 +647,7 @@ SearchWindow :: remoteSearchClose(void)
return;
}
Ptr<SearchResultsType>::Ref results;
Ptr<SearchResultsType>::Ref results;
if (state == AsyncState::finishedState) {
try {
@ -674,7 +674,9 @@ SearchWindow :: remoteSearchClose(void)
} else if (state == AsyncState::failedState) {
remoteSearchToken.reset();
displayMessage(*errorMessage, remoteSearchResults);
gLiveSupport->displayMessageWindow(formatMessage("longErrorMsg",
*errorMessage ));
displayMessage("shortErrorMsg", remoteSearchResults);
}
}
}