diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/menu_options.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mir_app/src/menu_options.cpp b/src/mir_app/src/menu_options.cpp index ddf44c90a1..115d7fe8a8 100644 --- a/src/mir_app/src/menu_options.cpp +++ b/src/mir_app/src/menu_options.cpp @@ -526,10 +526,9 @@ public: void onMenuItemBeginDrag(CCtrlTreeView::TEventInfo *evt) { MenuItemOptData *p = (MenuItemOptData*)evt->nmtv->itemNew.lParam; - if (p->pimi == NULL) - evt->nmhdr->code = 0; // reject an attempt to move a separator - else if (p->pimi->mi.flags & CMIF_UNMOVABLE) - evt->nmhdr->code = 0; // reject an attempt to change item's position + if (p->pimi != NULL) + if (p->pimi->mi.flags & CMIF_UNMOVABLE) + evt->nmhdr->code = 0; // reject an attempt to change item's position } }; |