mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 01:40:46 +00:00
PixelPaint: Disable levels dialog action when no image is loaded
Previously, clicking on the levels dialog with no image loaded would cause a crash.
This commit is contained in:
parent
a139c77c71
commit
ef54a3c0d2
Notes:
sideshowbarker
2024-07-17 01:23:08 +09:00
Author: https://github.com/tcl3
Commit: ef54a3c0d2
Pull-request: https://github.com/SerenityOS/serenity/pull/17657
1 changed files with 2 additions and 0 deletions
|
@ -1137,6 +1137,8 @@ void MainWidget::set_actions_enabled(bool enabled)
|
|||
m_filter_menu->set_children_actions_enabled(enabled);
|
||||
|
||||
m_zoom_combobox->set_enabled(enabled);
|
||||
|
||||
m_levels_dialog_action->set_enabled(enabled);
|
||||
}
|
||||
|
||||
void MainWidget::set_mask_actions_for_layer(Layer* layer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue