Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply Guichan's changes from 7e9f0de6ae4026a9b44cec457a91eb68e2031b83… #97

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion TODO
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* Continue rebasing from 3437d59c7393d5fafe151582d285b3665399a7b7
* Continue rebasing from 0650ac153814784b1bad6c4bf68867dd079b5640
* Add a focus listener interface.
* Make focus apply synchronously.
* Graphics and input objects for DirectX.
Expand Down
5 changes: 1 addition & 4 deletions src/widgets/tabbedarea.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -480,10 +480,7 @@ namespace gcn

void TabbedArea::death(const Event& event)
{
Widget* source = event.getSource();
Tab* tab = dynamic_cast<Tab*>(source);

if (tab != NULL)
if (Tab* tab = dynamic_cast<Tab*>(event.getSource()))
{
removeTab(tab);
}
Expand Down