diff options
Diffstat (limited to 'src/mumble/PTTButtonWidget.cpp')
-rw-r--r-- | src/mumble/PTTButtonWidget.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mumble/PTTButtonWidget.cpp b/src/mumble/PTTButtonWidget.cpp index c5584dd20..7acdcf28a 100644 --- a/src/mumble/PTTButtonWidget.cpp +++ b/src/mumble/PTTButtonWidget.cpp @@ -4,7 +4,6 @@ // Mumble source tree or at <https://www.mumble.info/LICENSE>. #include "PTTButtonWidget.h" - #include "Global.h" PTTButtonWidget::PTTButtonWidget(QWidget *p) : QWidget(p) { @@ -12,13 +11,13 @@ PTTButtonWidget::PTTButtonWidget(QWidget *p) : QWidget(p) { setWindowFlags(Qt::Tool | Qt::WindowStaysOnTopHint); - if (!g.s.qbaPTTButtonWindowGeometry.isEmpty()) { - restoreGeometry(g.s.qbaPTTButtonWindowGeometry); + if (!Global::get().s.qbaPTTButtonWindowGeometry.isEmpty()) { + restoreGeometry(Global::get().s.qbaPTTButtonWindowGeometry); } } void PTTButtonWidget::closeEvent(QCloseEvent *e) { - g.s.qbaPTTButtonWindowGeometry = saveGeometry(); + Global::get().s.qbaPTTButtonWindowGeometry = saveGeometry(); QWidget::closeEvent(e); } |