diff options
author | George Hazan <george.hazan@gmail.com> | 2016-01-07 14:43:29 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-01-07 14:43:29 +0000 |
commit | 687bc6e5fdac41d662f6cff648e2f7456e6d0093 (patch) | |
tree | 35dfac92be319065ec92c5b7fbf1a7225c37f4fb /src | |
parent | de09dd655f75e896e6063c2c0a41a8e4a19a1784 (diff) |
moving separators? why not, for the god's sake
git-svn-id: http://svn.miranda-ng.org/main/trunk@16050 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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 } }; |