mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 18:13:47 +02:00
move variable closer to context where it is used
This commit is contained in:
parent
18544581e6
commit
f6d6c62fab
1 changed files with 1 additions and 1 deletions
|
@ -471,10 +471,10 @@ void Menu::removeSeparator(const QString& menuName, const QString& separatorName
|
|||
int textAt = findPositionOfMenuItem(menu, separatorName);
|
||||
QList<QAction*> menuActions = menu->actions();
|
||||
if (textAt > 0 && textAt < menuActions.size()) {
|
||||
QAction* separatorText = menuActions[textAt];
|
||||
QAction* separatorLine = menuActions[textAt - 1];
|
||||
if (separatorLine) {
|
||||
if (separatorLine->isSeparator()) {
|
||||
QAction* separatorText = menuActions[textAt];
|
||||
menu->removeAction(separatorText);
|
||||
menu->removeAction(separatorLine);
|
||||
separatorRemoved = true;
|
||||
|
|
Loading…
Reference in a new issue