[tabbox] fix non-working global shortcuts overrides
static cuts[] array was initialized only once with copies of non-const objects, so when new shortcuts are configured, the old objects were still referenced. Fixed by having non-static array instead, so actual objects are copied on the init every time. BUG: 359141
This commit is contained in:
parent
52eabd064d
commit
471d635f0c
1 changed files with 1 additions and 1 deletions
|
@ -1327,7 +1327,7 @@ void TabBox::keyPress(int keyQt)
|
||||||
TabBoxWindowsMode, TabBoxWindowsAlternativeMode,
|
TabBoxWindowsMode, TabBoxWindowsAlternativeMode,
|
||||||
TabBoxCurrentAppWindowsMode, TabBoxCurrentAppWindowsAlternativeMode
|
TabBoxCurrentAppWindowsMode, TabBoxCurrentAppWindowsAlternativeMode
|
||||||
};
|
};
|
||||||
static const QKeySequence cuts[2*ModeCount] = {
|
const QKeySequence cuts[2*ModeCount] = {
|
||||||
// forward
|
// forward
|
||||||
m_cutWalkThroughWindows, m_cutWalkThroughWindowsAlternative,
|
m_cutWalkThroughWindows, m_cutWalkThroughWindowsAlternative,
|
||||||
m_cutWalkThroughCurrentAppWindows, m_cutWalkThroughCurrentAppWindowsAlternative,
|
m_cutWalkThroughCurrentAppWindows, m_cutWalkThroughCurrentAppWindowsAlternative,
|
||||||
|
|
Loading…
Reference in a new issue