FIX:disable the mall when there is no network plugin
Change-Id: I1f7d9c1e3de3e91f705593b23386d329cb28d3d8
This commit is contained in:
parent
47302b0cf9
commit
a9ac3657ca
|
@ -4907,21 +4907,22 @@ void GUI_App::load_url(wxString url)
|
|||
void GUI_App::open_mall_page_dialog()
|
||||
{
|
||||
std::string url;
|
||||
getAgent()->get_model_mall_home_url(&url);
|
||||
|
||||
if (mainframe) {
|
||||
if (getAgent() && mainframe) {
|
||||
getAgent()->get_model_mall_home_url(&url);
|
||||
|
||||
ModelMallDialog modelMallDialog;
|
||||
modelMallDialog.go_to_mall(url);
|
||||
modelMallDialog.ShowModal();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void GUI_App::open_publish_page_dialog()
|
||||
{
|
||||
std::string url;
|
||||
getAgent()->get_model_publish_url(&url);
|
||||
if (getAgent() && mainframe) {
|
||||
getAgent()->get_model_publish_url(&url);
|
||||
|
||||
if (mainframe) {
|
||||
ModelMallDialog modelMallDialog;
|
||||
modelMallDialog.go_to_publish(url);
|
||||
modelMallDialog.ShowModal();
|
||||
|
|
Loading…
Reference in New Issue