diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2020-07-28 14:51:39 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2020-08-18 18:52:33 +0300 |
commit | a708de042c2f83bb9d424196aaa61cabb13d1fa8 (patch) | |
tree | def33921542102b493cbc0a62ab85b7b9c1665e3 /src/gui/application.h | |
parent | c4a78e7bcf863161b51e3f8f0658f656c90c9b70 (diff) |
Minimize main window instead of dialog
Diffstat (limited to 'src/gui/application.h')
-rw-r--r-- | src/gui/application.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/application.h b/src/gui/application.h index 0cd40deca..1836cac4f 100644 --- a/src/gui/application.h +++ b/src/gui/application.h @@ -148,6 +148,13 @@ private: QScopedPointer<FolderMan> _folderManager; }; +inline Application *ocApp() +{ + auto instance = qobject_cast<Application *>(qApp); + OC_ENFORCE(instance); + return instance; +} + } // namespace OCC #endif // APPLICATION_H |