Browse Source

- Added exit() function to headless loader class so that we have a way to return to prompt

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
dd22e9009c
  1. 10
      src/headlessloader.h

10
src/headlessloader.h

@ -32,12 +32,22 @@ @@ -32,12 +32,22 @@
#define HEADLESSLOADER_H
#include <QObject>
#include <QCoreApplication>
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

Loading…
Cancel
Save