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