Ignore:
Timestamp:
Aug 31, 2016, 7:22:54 PM (9 years ago)
Author:
Silvan Scherrer
Message:

smplayer: restore some os/2 removals from vendor, fix branding

File:
1 edited

Legend:

Unmodified
Added
Removed
  • smplayer/trunk/src/baseguiplus.cpp

    r181 r182  
    222222        if (!pref->tablet_mode) {
    223223                openMenu->addAction(quitAct);
     224#ifndef Q_OS_OS2
    224225                optionsMenu->addAction(showTrayAct);
     226#else
     227                trayAvailable();
     228                connect( optionsMenu, SIGNAL(aboutToShow()),
     229                     this, SLOT(trayAvailable()) );
     230#endif
    225231        }
    226232
     
    693699#endif
    694700
     701#ifdef Q_OS_OS2
     702/*
     703 * we test if xcenter is available at all. if not disable the tray action.
     704 * this is possible when xcenter is not opened or crashed
     705 */
     706void BaseGuiPlus::trayAvailable() {
     707        if (!tray->isSystemTrayAvailable())
     708           optionsMenu->removeAction(showTrayAct);
     709        else
     710           optionsMenu->addAction(showTrayAct);
     711}
     712#endif
    695713
    696714// Convenience functions intended for other GUI's
Note: See TracChangeset for help on using the changeset viewer.