FMessageDialog::Open(EAppMsgType::Ok,NSLOCTEXT("UnrealEd","TaskBrowser_Error_StartingConnect","The Task Browser encountered an uncommon error while trying to connect to the database. Please adjust your connection settings using the Settings button at the bottom of the Task Browser and try again by clicking Connect."));
}
}
if(TaskDatabaseSystem::IsConnected())
{
// If we were asked to disconnect, then do that now
// Failed to initiate disconnection! Should never happen, but not a big deal.
FMessageDialog::Open(EAppMsgType::Ok,NSLOCTEXT("UnrealEd","TaskBrowser_Error_StartingDisconnect","The Task Browser encountered an uncommon error while trying to disconnect from the database."));
// Failed to initiate query for filters! Should never happen, but not a big deal.
FMessageDialog::Open(EAppMsgType::Ok,NSLOCTEXT("UnrealEd","TaskBrowser_Error_StartingFilterQuery","The Task Browser encountered an uncommon error while trying to query a list of filters from the database."));
}
bShouldRefreshFilterNames=false;
}
// Have we been asked to mark any tasks as completed?
elseif(TaskNumbersToMarkComplete.Num()>0)
{
// Pop the first task off the list and mark it as completed
// Failed to initiate marking task as complete. Should never happen.
FMessageDialog::Open(EAppMsgType::Ok,NSLOCTEXT("UnrealEd","TaskBrowser_Error_StartingMarkAsComplete","The Task Browser encountered an uncommon error while trying to mark a task as complete."));
}
}
elseif(ActiveFilterName!=CachedLastTaskArrayFilterName)// Has filter name changed?
// Store filter name these tasks were queried with so we'll know later that the
// tasks don't need to be retrieved again
CachedLastTaskArrayFilterName=ActiveFilterName;
}
else
{
// Failed to initiate query for tasks!
FMessageDialog::Open(EAppMsgType::Ok,NSLOCTEXT("UnrealEd","TaskBrowser_Error_StartingQueryTasks","The Task Browser encountered an uncommon error while trying to query a list of tasks."));
}
}
}
else
{
// Do we have a task number to retrieve details for?
FMessageDialog::Open(EAppMsgType::Ok,NSLOCTEXT("UnrealEd","TaskBrowser_Error_StartingQueryTaskDetails","The Task Browser encountered an uncommon error while trying to query details about a task."));
// Reset the focused task number so that we don't spam requests on error
SetFocusedTaskNumber(INDEX_NONE);
}
}
}
}
}
}
}
/** We've been disconnected (either voluntarily or otherwise), so clean up state and refresh GUI */
NSLOCTEXT("UnrealEd","TaskBrowser_Error_ConnectFailed_F","The Task Browser was unable to connect to the task database server. The following error message was reported:\n\n{0}\n\nPlease adjust your connection settings using the Settings button at the bottom of the Task Browser and try again by clicking Connect."),
NSLOCTEXT("UnrealEd","TaskBrowser_Error_DisconnectFailed_F","The Task Browser was unable to disconnect to the task database server. The following error message was reported:\n\n{0}"),
NSLOCTEXT("UnrealEd","TaskBrowser_Error_QueryFiltersFailed_F","The Task Browser encountered an error while querying a list of filters from the server. The following error message was reported:\n\n{0}"),
FText::FromString(Response->ErrorMessage)));
if(!TaskDatabaseSystem::IsConnected())
{
// We were disconnected during the request, so try to handle that gracefully
NSLOCTEXT("UnrealEd","TaskBrowser_Error_QueryTasksFailed_F","The Task Browser encountered an error while querying a list of filtered tasks from the server. The following error message was reported:\n\n{0}"),
FText::FromString(Response->ErrorMessage)));
if(!TaskDatabaseSystem::IsConnected())
{
// We were disconnected during the request, so try to handle that gracefully
NSLOCTEXT("UnrealEd","TaskBrowser_Error_QueryTaskDetailsFailed_F","The Task Browser encountered an error while querying details about a specific task from the server. The following error message was reported:\n\n{0}"),
FText::FromString(Response->ErrorMessage)));
// Invalidate our focused task number so that we won't spam requests
SetFocusedTaskNumber(INDEX_NONE);
if(!TaskDatabaseSystem::IsConnected())
{
// We were disconnected during the request, so try to handle that gracefully
NSLOCTEXT("UnrealEd","TaskBrowser_Error_MarkCompleteFailed_F","The Task Browser was unable to mark the specified task(s) as completed. The following error message was reported:\n\n{0}"),
FText::FromString(Response->ErrorMessage)));
if(!TaskDatabaseSystem::IsConnected())
{
// We were disconnected during the request, so try to handle that gracefully