|
@@ -17,7 +17,7 @@ namespace CommonActions {
|
|
|
|
|
|
NonnullRefPtr<Action> make_about_action(const String& app_name, const Icon& app_icon, Window* parent)
|
|
|
{
|
|
|
- auto weak_parent = AK::try_make_weak_ptr<Window>(parent);
|
|
|
+ auto weak_parent = AK::make_weak_ptr_if_nonnull<Window>(parent);
|
|
|
auto action = Action::create(String::formatted("&About {}", app_name), app_icon.bitmap_for_size(16), [=](auto&) {
|
|
|
AboutDialog::show(app_name, app_icon.bitmap_for_size(32), weak_parent.ptr());
|
|
|
});
|