From 21c500a72696c7d6aa791d1e488bfcb7de3a4339 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 14 May 2018 17:22:57 +0200 Subject: opentrack: fix at #726 cf. https://github.com/opentrack/opentrack/issues/726#issuecomment-387983372 --- variant/default/main-window.cpp | 4 ++-- variant/default/main-window.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/variant/default/main-window.cpp b/variant/default/main-window.cpp index d5515eb1..fde61994 100644 --- a/variant/default/main-window.cpp +++ b/variant/default/main-window.cpp @@ -44,7 +44,7 @@ extern "C" const char* const opentrack_version; * files. */ -#if !defined _WIN32 && !defined __APPLE__ +#if !defined _WIN32 # include void main_window::annoy_if_root() { @@ -54,7 +54,7 @@ void main_window::annoy_if_root() QString caption; QString msg; int sleep_ms; - } list const[] = { + } list[] = { { tr("Running as root is bad"), tr("Do not run as root. Set correct device node permissions."), diff --git a/variant/default/main-window.hpp b/variant/default/main-window.hpp index 6e85a13c..bc38c517 100644 --- a/variant/default/main-window.hpp +++ b/variant/default/main-window.hpp @@ -96,7 +96,7 @@ class main_window : public QMainWindow, private State void changeEvent(QEvent* e) override; bool event(QEvent *event) override; bool maybe_hide_to_tray(QEvent* e); -#if !defined _WIN32 && !defined __APPLE__ +#if !defined _WIN32 void annoy_if_root(); #endif -- cgit v1.2.3