X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fui_signaller.h;h=7e0f575135fc893681cc08e3b481847d112c3824;hb=47fdbbdb51fd7fd3e0e8818422f11f9df4d4fa73;hp=428ab698f1d3028f05c42705bb1ad76787120ba1;hpb=28dbf4fd074d2046a3c8ddebac9a537a80fd457a;p=dcpomatic.git diff --git a/src/lib/ui_signaller.h b/src/lib/ui_signaller.h index 428ab698f..7e0f57513 100644 --- a/src/lib/ui_signaller.h +++ b/src/lib/ui_signaller.h @@ -27,7 +27,7 @@ /** A class to allow signals to be emitted from non-UI threads and handled * by a UI thread. */ -class UISignaller +class UISignaller : public boost::noncopyable { public: /** Create a UISignaller. Must be called from the UI thread */ @@ -60,7 +60,10 @@ public: } /** This should wake the UI and make it call ui_idle() */ - virtual void wake_ui () = 0; + virtual void wake_ui () { + /* This is only a sensible implementation when there is no GUI... */ + ui_idle (); + } private: /** A io_service which is used as the conduit for messages */