diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-11-07 18:14:24 -0500 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-11-07 20:16:27 -0500 |
| commit | b4f6275c3ef888551e14e5d64739e1c32978b8e8 (patch) | |
| tree | adb5add804f6600c120ef0b8c9d95553a2ea707c /src/moapplication.h | |
| parent | 98b782caff4d1b5c316f5773d7a07494912bb2d8 (diff) | |
split getCurrentInstance()
Diffstat (limited to 'src/moapplication.h')
| -rw-r--r-- | src/moapplication.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/moapplication.h b/src/moapplication.h index c1512d9b..8cbb5f28 100644 --- a/src/moapplication.h +++ b/src/moapplication.h @@ -37,7 +37,10 @@ class MOApplication : public QApplication public:
MOApplication(cl::CommandLine& cl, int& argc, char** argv);
+ // sets up everything, creates the main window and runs it
+ //
int run(SingleInstance& si);
+
virtual bool notify(QObject* receiver, QEvent* event);
public slots:
@@ -53,6 +56,8 @@ private: int doOneRun(SingleInstance& singleInstance);
+ std::optional<Instance> getCurrentInstance();
+
int runApplication(
SingleInstance& singleInstance,
const QString &dataPath, Instance& currentInstance);
|
