From 98ecc8a132becaa4e37939ca5f7fd2031c603565 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 23 Oct 2019 14:14:54 +0200 Subject: Try even harder to restore focus after spawning openbox I just need a bigger hammer. --- src/dialog.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/dialog.h') 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]; -- cgit v1.2.3-55-g7522