From 5ceb577e5d9a4fd0be231bc34d29f90668579363 Mon Sep 17 00:00:00 2001 From: Nathan Osman Date: Mon, 1 Feb 2016 11:53:06 -0800 Subject: [PATCH] Fixed Gnome warning (#50). --- src/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 608494ef..124b1881 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -52,10 +52,6 @@ int main(int argc, char **argv) Settings::instance()->set(Settings::Key::ApplicationSplash, true); } - // Create the tray icon that runs the application - Application nitroshare; - Q_UNUSED(nitroshare); - #ifdef APPINDICATOR_FOUND // If the splash had not been seen and the user is running Gnome, // warn them that they need a special extension installed @@ -64,11 +60,15 @@ int main(int argc, char **argv) QMessageBox::about(nullptr, QObject::tr("Warning"), QObject::tr( "Some versions of Gnome do not support AppIndicators. This prevents " "NitroShare from displaying an indicator in the notification area. " - "If you cannot see the icon there, please install this extension:" + "Please ensure you have this extension installed before continuing:" "

%1" ).arg("https://extensions.gnome.org/extension/615/appindicator-support/")); } #endif + // Create the tray icon that runs the application + Application nitroshare; + Q_UNUSED(nitroshare); + return app.exec(); }