From dd22e9009c1eab9aa8b7fced87e781392e20e7dd Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Tue, 15 Dec 2009 11:14:03 +0000 Subject: [PATCH] - Added exit() function to headless loader class so that we have a way to return to prompt --- src/headlessloader.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/headlessloader.h b/src/headlessloader.h index 46c241f98..cd4326c37 100644 --- a/src/headlessloader.h +++ b/src/headlessloader.h @@ -32,12 +32,22 @@ #define HEADLESSLOADER_H #include +#include class HeadlessLoader: QObject { + Q_OBJECT + public: HeadlessLoader() { } + + public slots: + // Call this function to exit qBittorrent headless loader + // and return to prompt (object will be deleted by main) + void exit() { + qApp->quit(); + } }; #endif