Changeset 846 for trunk/src/gui/util/qdesktopservices_x11.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/util/qdesktopservices_x11.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation ([email protected]) … … 72 72 return true; 73 73 74 if (X11->desktopEnvironment == DE_GNOME && launch(url, QLatin1String("gnome-open"))) { 74 // Use the X11->desktopEnvironment value if X11 is non-NULL, 75 // otherwise just attempt to launch command regardless of the desktop environment 76 if ((!X11 || (X11 && X11->desktopEnvironment == DE_GNOME)) && launch(url, QLatin1String("gnome-open"))) { 75 77 return true; 76 78 } else { 77 if ( X11->desktopEnvironment == DE_KDE&& launch(url, QLatin1String("kfmclient exec")))79 if ( && launch(url, QLatin1String("kfmclient exec"))) 78 80 return true; 79 81 } … … 105 107 return true; 106 108 107 if (X11->desktopEnvironment == DE_GNOME && launch(url, QLatin1String("gnome-open"))) { 109 // Use the X11->desktopEnvironment value if X11 is non-NULL, 110 // otherwise just attempt to launch command regardless of the desktop environment 111 if ((!X11 || (X11 && X11->desktopEnvironment == DE_GNOME)) && launch(url, QLatin1String("gnome-open"))) { 108 112 return true; 109 113 } else { 110 if ( X11->desktopEnvironment == DE_KDE&& launch(url, QLatin1String("kfmclient openURL")))114 if ( && launch(url, QLatin1String("kfmclient openURL"))) 111 115 return true; 112 116 }
Note:
See TracChangeset
for help on using the changeset viewer.