summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-12-01 22:08:19 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-12-01 22:08:19 +0000
commit2051c4098574615efacf61305d13b26b3595a4bd (patch)
tree8026b212526dac509040f8aa9aa15e3cbbabb1fa
parent8a9d9a23e2f64016adedd0aa748d06d4c6d55459 (diff)
also fix for an editor
git-svn-id: http://svn.miranda-ng.org/main/trunk@15800 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--src/mir_app/src/menu_options.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mir_app/src/menu_options.cpp b/src/mir_app/src/menu_options.cpp
index b67cf8c99b..9c9d5bee58 100644
--- a/src/mir_app/src/menu_options.cpp
+++ b/src/mir_app/src/menu_options.cpp
@@ -167,9 +167,8 @@ class CGenMenuOptionsPage : public CDlgBase
bin2hex(&p->mi.uid, sizeof(p->mi.uid), menuItemName);
ptrT tszSettings(db_get_tsa(NULL, pszModule, menuItemName));
if (tszSettings == NULL)
- continue;
-
- if (_stscanf(tszSettings, _T("%d;%d;%200s"), &visible, &pos, customName) < 2)
+ pos = p->mi.position;
+ else if (_stscanf(tszSettings, _T("%d;%d;%200s"), &visible, &pos, customName) < 2)
continue;
}