Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
microcai committed Oct 17, 2024
1 parent d620d61 commit 6440088
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions libs/qtcoro/qtcoro.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,14 @@ namespace qtcoro
explicit QPrivateSignal() = default;
};

public slots:
void call()
public:
inline void call()
{
deleteLater();
if (auto_delete)
deleteLater();
func();
}
bool auto_delete { true };
public:

MyCallableQObject(Func&& f) : func(std::forward<Func>(f)){}
Expand Down

0 comments on commit 6440088

Please sign in to comment.