You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to understand how shortcutChanged signal is perpetuated and I think, it is looping endlessly.
Consider the starting to be connection between ApplicationSettings::shortcutChanged signal and ActionList::changeShortcut in the file main_window.cpp. Eventually ActionList::changeShortcut emits a signal ActionDefinition::shortcutChanged via ActionDefinition::setShortcut method.
In application_settings.cpp, ActionDefinition::shortcutChanged is connected to ApplicationSettings::onShortcutChanged (in the file application_settings.cpp), which in turn emits ApplicationSettings::shortcutChanged signals and the cycle goes around.
I think to break the cycle, we just have to remove the signal emit from ActionDefinition::setShortcut and remove the connection between ActionDefinition::shortcutChanged and ApplicationSettings::onShortcutChanged.
Sorry, if it is too complicated. What do you think about my suggestion? Thank you.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Basically,
I was trying to understand how
shortcutChanged
signal is perpetuated and I think, it is looping endlessly.Consider the starting to be connection between
ApplicationSettings::shortcutChanged
signal andActionList::changeShortcut
in the filemain_window.cpp
. EventuallyActionList::changeShortcut
emits a signalActionDefinition::shortcutChanged
viaActionDefinition::setShortcut
method.In
application_settings.cpp
,ActionDefinition::shortcutChanged
is connected toApplicationSettings::onShortcutChanged
(in the fileapplication_settings.cpp
), which in turn emitsApplicationSettings::shortcutChanged
signals and the cycle goes around.I think to break the cycle, we just have to remove the signal emit from
ActionDefinition::setShortcut
and remove the connection betweenActionDefinition::shortcutChanged
andApplicationSettings::onShortcutChanged
.Sorry, if it is too complicated. What do you think about my suggestion? Thank you.
The text was updated successfully, but these errors were encountered: