Changeset 182 for smplayer/trunk/src/baseguiplus.cpp
- Timestamp:
- Aug 31, 2016, 7:22:54 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/trunk/src/baseguiplus.cpp
r181 r182 222 222 if (!pref->tablet_mode) { 223 223 openMenu->addAction(quitAct); 224 #ifndef Q_OS_OS2 224 225 optionsMenu->addAction(showTrayAct); 226 #else 227 trayAvailable(); 228 connect( optionsMenu, SIGNAL(aboutToShow()), 229 this, SLOT(trayAvailable()) ); 230 #endif 225 231 } 226 232 … … 693 699 #endif 694 700 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 */ 706 void BaseGuiPlus::trayAvailable() { 707 if (!tray->isSystemTrayAvailable()) 708 optionsMenu->removeAction(showTrayAct); 709 else 710 optionsMenu->addAction(showTrayAct); 711 } 712 #endif 695 713 696 714 // Convenience functions intended for other GUI's
Note:
See TracChangeset
for help on using the changeset viewer.