mirror of
https://github.com/aseprite/aseprite.git
synced 2024-10-03 21:46:20 +00:00
Fix a couple of minor leaked ui::Messages
This commit is contained in:
parent
b02fc43506
commit
eec9ed0bcc
@ -942,9 +942,9 @@ void KeyboardShortcutsCommand::onExecute(Context* context)
|
|||||||
|
|
||||||
// Save preferences in widgets that are bound to options automatically
|
// Save preferences in widgets that are bound to options automatically
|
||||||
{
|
{
|
||||||
Message* msg = new Message(kSavePreferencesMessage);
|
Message msg(kSavePreferencesMessage);
|
||||||
msg->setPropagateToChildren(msg);
|
msg.setPropagateToChildren(&msg);
|
||||||
window.sendMessage(msg);
|
window.sendMessage(&msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Save keyboard shortcuts in configuration file
|
// Save keyboard shortcuts in configuration file
|
||||||
|
@ -589,9 +589,9 @@ public:
|
|||||||
void saveConfig() {
|
void saveConfig() {
|
||||||
// Save preferences in widgets that are bound to options automatically
|
// Save preferences in widgets that are bound to options automatically
|
||||||
{
|
{
|
||||||
Message* msg = new Message(kSavePreferencesMessage);
|
Message msg(kSavePreferencesMessage);
|
||||||
msg->setPropagateToChildren(msg);
|
msg.setPropagateToChildren(&msg);
|
||||||
sendMessage(msg);
|
sendMessage(&msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update language
|
// Update language
|
||||||
|
Loading…
Reference in New Issue
Block a user