diff options
author | Simon Rettberg | 2019-10-23 14:14:54 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-10-23 14:14:54 +0200 |
commit | 98ecc8a132becaa4e37939ca5f7fd2031c603565 (patch) | |
tree | 32840aba89dc4df38f36d70b3fcad9bb73f3fd31 /src/dialog.h | |
parent | Use execv() to start selected session (diff) | |
download | vmchooser2-98ecc8a132becaa4e37939ca5f7fd2031c603565.tar.gz vmchooser2-98ecc8a132becaa4e37939ca5f7fd2031c603565.tar.xz vmchooser2-98ecc8a132becaa4e37939ca5f7fd2031c603565.zip |
Try even harder to restore focus after spawning openbox
I just need a bigger hammer.
Diffstat (limited to 'src/dialog.h')
-rw-r--r-- | src/dialog.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dialog.h b/src/dialog.h index cc7f50e..d9c5d6b 100644 --- a/src/dialog.h +++ b/src/dialog.h @@ -41,6 +41,7 @@ class Dialog : public QDialog { void setTheme(); void startSession(const QString& name); void downloadData(const QString& locationIds); + static QDialog* getInstance(); protected: // Overrides void changeEvent(QEvent *e); @@ -50,6 +51,7 @@ class Dialog : public QDialog { void showEvent(QShowEvent * e) override; private: // Private vars n methods + static QDialog* instance; Ui::Dialog *ui; SessionTreeModel *model_[TAB_COUNT]; QPushButton *tabs_[TAB_COUNT]; |