summaryrefslogtreecommitdiffstats
path: root/src/dialog.h
diff options
context:
space:
mode:
authorSimon Rettberg2019-10-23 14:14:54 +0200
committerSimon Rettberg2019-10-23 14:14:54 +0200
commit98ecc8a132becaa4e37939ca5f7fd2031c603565 (patch)
tree32840aba89dc4df38f36d70b3fcad9bb73f3fd31 /src/dialog.h
parentUse execv() to start selected session (diff)
downloadvmchooser2-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.h2
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];