mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 06:24:58 +00:00
Taskbar: Fix bug where dropping item in quick launch widget would crash
This commit is contained in:
parent
00ab8e0a14
commit
706a741053
1 changed files with 2 additions and 1 deletions
|
@ -182,7 +182,8 @@ void QuickLaunchWidget::drop_event(GUI::DropEvent& event)
|
|||
auto path = url.serialize_path();
|
||||
auto entry = QuickLaunchEntry::create_from_path(path);
|
||||
if (entry) {
|
||||
auto result = update_entry(entry->name(), entry.release_nonnull());
|
||||
auto entry_name = entry->name();
|
||||
auto result = update_entry(entry_name, entry.release_nonnull());
|
||||
if (result.is_error())
|
||||
GUI::MessageBox::show_error(window(), ByteString::formatted("Failed to add quick launch entry: {}", result.release_error()));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue