More clear identification if is there object selected

This commit is contained in:
YuSanka 2019-09-16 11:55:05 +02:00
parent 284355d378
commit a12e6a7bde

View file

@ -1401,7 +1401,8 @@ wxMenuItem* ObjectList::append_menu_item_settings(wxMenu* menu_)
menu->SetFirstSeparator(); menu->SetFirstSeparator();
// Add frequently settings // Add frequently settings
create_freq_settings_popupmenu(menu, sel_vol==nullptr); const bool is_object_settings = m_objects_model->GetItemType(GetSelection()) == itObject;
create_freq_settings_popupmenu(menu, is_object_settings);
if (mode == comAdvanced) if (mode == comAdvanced)
return nullptr; return nullptr;