Fix unused isUnity warning for no appindicator builds

This commit is contained in:
Oleg Shparber 2014-11-15 22:28:31 -08:00
parent de4224763b
commit 83c89d46f3

View File

@ -608,13 +608,10 @@ void MainWindow::createTrayIcon()
if(trayIcon) return;
#endif
QString desktop;
bool isUnity;
desktop = getenv("XDG_CURRENT_DESKTOP");
isUnity = (desktop.toLower() == "unity");
#ifdef USE_LIBAPPINDICATOR
const QString desktop = getenv("XDG_CURRENT_DESKTOP");
const bool isUnity = (desktop.toLower() == "unity");
if(isUnity) //Application Indicators for Unity
{
GtkWidget *menu;