Fix not working shortcuts.
This commit is contained in:
parent
32519e6089
commit
ce1eac1407
|
@ -1740,6 +1740,11 @@ void VPMainWindow::ReadSettings()
|
||||||
|
|
||||||
// Stack limit
|
// Stack limit
|
||||||
m_undoStack->setUndoLimit(settings->GetUndoCount());
|
m_undoStack->setUndoLimit(settings->GetUndoCount());
|
||||||
|
|
||||||
|
if (VAbstractShortcutManager *manager = VAbstractApplication::VApp()->GetShortcutManager())
|
||||||
|
{
|
||||||
|
manager->UpdateShortcuts();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -2007,6 +2007,11 @@ void TKMMainWindow::ReadSettings()
|
||||||
|
|
||||||
// Stack limit
|
// Stack limit
|
||||||
// VAbstractApplication::VApp()->getUndoStack()->setUndoLimit(settings->GetUndoCount());
|
// VAbstractApplication::VApp()->getUndoStack()->setUndoLimit(settings->GetUndoCount());
|
||||||
|
|
||||||
|
if (VAbstractShortcutManager *manager = VAbstractApplication::VApp()->GetShortcutManager())
|
||||||
|
{
|
||||||
|
manager->UpdateShortcuts();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -4031,6 +4031,11 @@ void TMainWindow::ReadSettings()
|
||||||
|
|
||||||
// Stack limit
|
// Stack limit
|
||||||
// VAbstractApplication::VApp()->getUndoStack()->setUndoLimit(settings->GetUndoCount());
|
// VAbstractApplication::VApp()->getUndoStack()->setUndoLimit(settings->GetUndoCount());
|
||||||
|
|
||||||
|
if (VAbstractShortcutManager *manager = VAbstractApplication::VApp()->GetShortcutManager())
|
||||||
|
{
|
||||||
|
manager->UpdateShortcuts();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user